File upload nothing seems to work, can anyone help?

For programming and general questions on Zend Framework

File upload nothing seems to work, can anyone help?

Postby kell3850 on Tue Jul 04, 2017 7:04 pm

Hi all

I've been banging my head for the past 2 weeks trying to get file uploads to work. I've scoured the net and tried numerous examples and suggestions. None work. I've inherited a PHP Zend Framework application and am enhancing the application to do file uploads.
I have a view that has a dialog box that pops up when a button is pressed. The Form within the dialog is set with 'enctype', 'multipart/form-data'.

Things I've tried:
- Using Zend_Form_Element_File - using this framework object, I've tried receiving the file, but no files are uploaded and I receive nothing in getMessages, getErrormessages, or getErrors Nothing seems to be passed through the POST when using this control.

- using a regular 'File' input, I can see the file contents in the 'POST' under Firebug, but I can't access the underlying POST data to save the file. When I call isValid on the form, it is invalid due to: fileUploadErrorIniSize error: File 'xxx' exceeds the defined ini size.

- From my PHPINFO output:
file_uploads: On
upload_max_filesize: 128M
memory_limit: 128M
post_max_size: 128M

I'm new to Zend, but if anyone can help me, I would greatly appreciate it.
Posts: 1
Joined: Tue Jul 04, 2017 6:53 pm

Return to Zend Framework

Who is online

Users browsing this forum: Exabot [Bot] and 3 guests