Back | Reverse | Quick Reply | Post Reply |

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 gendou 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 Sheep 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

Back | Reverse | Quick Reply | Post Reply |

Copyright 2000-2024 Gendou | Terms of Use | Page loaded in 0.0025 seconds at 2024-05-06 02:52:32