How to access the fileupload data in PHP plugin

Status
Not open for further replies.

jfquestiaux

Well-Known Member
In a PHP form plugin, I use $jinput = JFactory::getApplication()->input to get to the values entered in the form.
This works fine except for the fileupload plugin from witch I don't find the value: "events___image_raw" is empty and "events___image" is simply not there.
My form plugin is set onAfterProcess and the path to the image is recorded in the db.
Is it a bug or do I have to use anothr way to get this value?
 
Well, maybe I am missing something, but I guess what you pointed at was the way to retreive file data.
Fine, but that way, I have access to the file name (and type, size,...), but not the "Fabrik" name, that is after replacing any placeholder, altering file name (removing spaces) and obfuscating. So it is pretty much useless.
What I need is the filename as it saved in the database, so I can use the same way in a similar element in another form.
Maybe the only way is making an SQL request to the db?
 
ah ok didn't realize that was what you needed - a call to the db would probably be the simplest way as you suggested.
 
Status
Not open for further replies.
Back
Top