Web Hosting Talk







View Full Version : Huge Upload via Form


Mike Bell
03-18-2005, 08:27 AM
I've got all of my max size settinsg cranked in my php.ini, and my timeouts bumped WAY up. However, if I try to upload a 30 megish file via php form, it after a long time will go to the next page, and load about half of it. No upload was made when I check. It just kinda.... dies? Any ideas on this? Any steps I have to do for a huge file like this?

Corey Bryant
03-18-2005, 09:36 AM
Have you tried using FTP instead of HTTP? FTP is usually better for large files.

Mike Bell
03-18-2005, 09:38 AM
It's a mod for a forum, and it just uses http, so no I haven't.

Corey Bryant
03-18-2005, 09:43 AM
Gotcha. Sorry we usually use ASP here & we switched to FTP on a few file uploads because of the size and it seemed to work a lot better.

mfonda
03-18-2005, 03:45 PM
Well, most web servers have a max upload size setting in their configuration, so you will have to check and see with your webserver, perhaps 30 megs is too big. IIRC, the default in apache is 2MB.

You may be better off using FTP. It is a little faster, and a little more secure. It is very easy to do in PHP. See http://us4.php.net/manual/en/ref.ftp.php for help.

Also, you could always try setting the PHP timeout limit. http://us3.php.net/manual/en/function.set-time-limit.php

Mike Bell
03-18-2005, 04:12 PM
There was a settig I was missing in PHP.ini. Did a 14.9 today. I'll try a 30 meg tonight. Thanks for the responses :)