Skip to main content
19 events
when toggle format what by license comment
Oct 7, 2014 at 0:22 comment added Eric A var_dump on $app->get('FILES'); outputs a NULL
Sep 29, 2014 at 14:29 comment added Brian Bolli Try retrieving the files object using $app->get('FILES'); and see if the var_dump contains the request data.
Sep 28, 2014 at 21:03 comment added Eric Would anything need to change in the model for the upload functionality?
Sep 27, 2014 at 15:26 comment added Eric I did a phpinfo() and it's set at 8M(see update)
Sep 26, 2014 at 17:29 comment added Brian Bolli Back to your php.ini settings, what's the value for post_max_size?
Sep 26, 2014 at 1:32 comment added Eric Do I need to define/declare the file being uploaded in any component XML or elsewhere?
Sep 26, 2014 at 1:03 comment added Eric Still no luck, unfortunately
Sep 25, 2014 at 23:56 comment added Brian Bolli Shot in the dark here, add a matching id attribute to the input with type file matching the name attribute of file_upload. Then try using JInput to get file and dumping variable again.
Sep 25, 2014 at 23:46 comment added Eric When I do a print_r on $_POST though it shows the post data
Sep 25, 2014 at 23:32 comment added Eric It says: file_uploads: on, max_file_uploads: 20, upload_max_filesize: 128m
Sep 23, 2014 at 23:38 comment added Brian Bolli Lol, then it sounds like a server or joomla configuration issue. In back end of joomla go to menu System > System Information and then select the PHP Information tab. Check your PHP setting for maximum post, file count and size upload.
Sep 23, 2014 at 23:34 comment added Brian Bolli What about if you var_dump the $_FILES array?
Sep 23, 2014 at 23:34 comment added Eric I'm also getting a NULL when I do a $_FILES['file_upload'] var_dump unfortunately
Sep 23, 2014 at 23:33 comment added Eric Thank you for your response, but I am getting a NULL when I do a var_dump on the JRequest $file you suggested at the top of your answer
Sep 23, 2014 at 20:27 comment added Brian Bolli Excellent observation, edited answer to start with something specific for OP's issue.
Sep 23, 2014 at 20:26 history edited Brian Bolli CC BY-SA 3.0
added 431 characters in body
Sep 23, 2014 at 20:05 history edited Brian Bolli CC BY-SA 3.0
added 1 character in body
Sep 23, 2014 at 19:55 comment added David Fritsch While this is probably a better coding practice for Joomla, I'm not sure it helps at all with why he can't get the file information.
Sep 23, 2014 at 19:27 history answered Brian Bolli CC BY-SA 3.0