Forums

File Upload Error

kathp 15 Sep, 2010
I've setup a form using Chronocontact v3.1RC5.5 for handling file uploads.

The form functions fine until I try to upload a file of about 3mb or more. In this case the form submits fine, no warning messages are shown, but the email comes through with no image attached.

I have tried various ways to increase the upload limit, first inside the form settings (uploads:jpg|zip|gif|tiff|png{3000000-0}), and also using php.ini, but so far nothing has worked

My debug log is attached below. It has a [error]=>1 value for the posted file array.

Is there anyway I can tell exactly what error occurred?

The File Upload Errors section of the File Uploads tab implies that some kind of warning message can be generated. But my form result page shows no error or helpful message.

Is there something I can do to get more helpful error information?


Debug log
1.Form passed first SPAM check OK
2.Form passed the submissions limit (if enabled) OK
3.Form passed the Image verification (if enabled) OK
4.Form passed the server side validation (if enabled) OK
5.$_POST Array: Array ( [first_name] => [last_name] => [order_email] => [order_phone] => [address] => [gallery_code] => [item_type] => Please Choose [wrap_type] => Please Choose [colour_type] => Please Choose [canvas_size] => Please Choose [quantity] => Please Choose [Submit_Order] => Submit Order [3e25885cd150db883ea583e32e669e4d] => 1 [1cf1] => f6f36b9d9bc86de6b04b9bcdcc67686d [chronoformname] => ordertest )
6.$_FILES Array: Array ( [uploads] => Array ( [name] => 20100914105732_20100804_1685bw2.jpg [type] => [tmp_name] => [error] => 1 [size] => 0 ) )
7.Form passed the plugins step (if enabled) OK
8.An email has been SENT successfully from () to [email]kath@designlots.com[/email]
9.Debug End
GreyHead 15 Sep, 2010
Hi kathp,

The PHP Manual shows this for File Error 1 "The uploaded file exceeds the upload_max_filesize directive in php.ini."

The limit may be set in your php.ini (the file can be in several locations) or may be a limit set by your ISP that you can't change. You can see the current value from the Help | System Info | PHP Information page on your site.

ChronoForms can't override the site limit, and it never sees the file so can't check it to send a message. Fredrik has posted more about this and may have posted a server-side check on the size. I don't recall clearly.

Bob
kathp 16 Sep, 2010
Sadly, not the answer I was hoping for, but very helpful nonetheless.

Thanks🙂
This topic is locked and no more replies can be posted.