Problem with upload (cannot upload file size > 1MB)

mifaso 03 Jun, 2009
Hi,

I made a form with 2 upload fields and the upload limit for each field is 5200KB,
However, when i tried to upload file size over 1MB, it is not working...
(the upload limit of my website is 80MB)
The following is the file size setting:

file_10:doc|pdf|rar|zip{5200-0},file_11:doc|pdf|rar|zip{5200-0}



I tried to make new forms but it still couldn't work.
The browser just showed error HTTP 500 when i tried to upload any files >1MB.


Is there any way to solve this problem?
GreyHead 03 Jun, 2009
Hi mjfaso,

Please check the setting in your php.ini file from Site Admin | Info |PHP Info

Bob
mifaso 03 Jun, 2009
Hi Bob,

I checked the Info,
upload_max_filesize = 80M
is there any other setting i should check?

I just created another form with only one upload field and it works well.
But two forms I made before still have this problem.
I will keep trying.
Thanks!
GreyHead 03 Jun, 2009
Hi mifaso,

Nothing else that I know about. What do you see whn you turn on debug in the form? Is the file in he $_FILES array?

Bob
nml375 03 Jun, 2009
You might also have to check the post_max_size as well as memory_limit settings in the php.ini

/Fredrik
mifaso 04 Jun, 2009
Hi,

The post_max_size is 80M and the memory_limit is 16M.
nml375 04 Jun, 2009
Do you have access to the server logs? Or could you enable error messages to be printed on the web-page?
The 500 error message simply means there was an error, but php choose not to reveal any further information about it on the web-page (due to security settings).

/Fredrik
This topic is locked and no more replies can be posted.