View Full Version : Problem with large file uploads
cfbjr
2004-09-20, 20:58 PM
I am having fits trying to get php to do a file upload over 512k.
php ini is set up with:
upload_max_filesize: 14M
post_max_size: 16M
memory_limit: 24M
I found /etc/httpd/conf.d/php.conf and edited the LimitRequestBody to 12524288
I rebooted the server using rapid reboot and viola! I still get the "Document Contains No Data" error from Firefox and the "I can't find a page" from IE when I try to use a form to upload a file that is 1086k in size.
The server is RH9.0 with Plesk 6.0.
Any ideas?
WestBendWeb
2004-09-20, 23:43 PM
There is also an option for max time of upload that will also have to be increased in the php.ini. I believe its 60 secs as a default.
noaxispoint
2004-09-21, 11:28 AM
I think it has nothing to do with the php file limits but timeouts. We have an incredibly fast connection here so if you could give the URL, I can upload a 1 Meg and 2 Meg file to see if it is the timeout. Since it is hosted at SB, I can upload the 1 and 2 meg files in under a minute.
Tino Didriksen
2004-09-21, 13:14 PM
Originally posted by cfbjr
I rebooted the server using rapid reboot... Since you obviously have access to the machine...
Do not use Rapid Reboot if you have any kind of access to the server!
Rapid Reboot is a hard reset (power off/power on) that may damage a running server. If you want to reboot and you have access, you log in as root and run reboot.
tonythor
2004-09-22, 14:06 PM
I have gone through this before.
There are several settings, maybe half a dozen you must change on your php.ini file.
Diff your PHP.ini file to this one to see them all.
http://www.dakotaplanet.com/php.ini.txt
I think I set this to limit at 20megs or so.
Also, I have NEVER had it work with IE.
When coding a back end with massive uploads, use either Safari, or Netscape.
[havent' tried it with mozilla]
tony fraser
cfbjr
2004-09-28, 20:33 PM
Thanks,
I must have missed a setting somewhere or actually made the setting but forgot to reboot once more. I got it working with the higher limits set in the php.ini file.
vBulletin® v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.