Uploading files in PHP
Link |
by paranoidsponge
on 2006-08-01 06:25:20
|
Hi, I'm trying to program a file upload script in PHP similar to the one used here. My problem is that the either the script times out or the browser times out before the file is uploaded. It only hangs for large files (~10mb). I set the PHP upload limit to 15 mb and used set_time_limit() to lengthen script time execution but time outs still occur. Any help would be greatly appreciated. |
Re: Uploading files in PHP
Link |
by
on 2006-08-01 10:05:47
|
Try adding this input to your form:<input type="hidden" name="MAX_FILE_SIZE" value="12582912" /> |
Re: Uploading files in PHP
Link |
by paranoidsponge
on 2006-08-04 05:58:51
|
Thanksa lot, it worked =) Out of curiosity, what does the value="12582912" part do? |
Re: Uploading files in PHP
Link |
by
on 2006-08-04 09:28:48
|
It's the size in bytes set for the maximum size of the file. So 12582912 would be 12.582.912bytes = ±12.5MB.
[Quiet dogs know when to be silent]
Sheep & Tiojar's Anime Episodes |