RE: [PHP] upload large files troubles
| From: | Jay Blanchard | Date: | Fri, 19 Aug 2005 13:06:47 +0000 |
| Subject: | RE: [PHP] upload large files troubles | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-220943@lists.php.net to get a copy of this message | ||
[snip]
I have apache2 + php5. I need to upload large files. I found out, that
file is uploaded always. But:
- if the file is less than 167 MB all is OK, then I tryed larger files -
from 191 MB up, files are uploaded, but php script, which handle the
operation is "like" not executed. I always get blank (clear) page (f.e.
echo "hello"; does not work!), so I can not let users know, that upload
finished OK.
Here is part of my php.ini file:
max_execution_time = 70000
max_input_time = 70000
memory_limit = 16M
post_max_size = 900M
upload_max_filesize = 900M
default_socket_timeout = 80000
....I think, these are all interested parts in this problem.
[/snip]
In your file where you browse for files to upload does it look like
this?
<!-- The data encoding type, enctype, MUST be specified as below -->
<form enctype="multipart/form-data" action="__URL__"
method="POST">
<!-- MAX_FILE_SIZE must precede the file input field -->
<input type="hidden" name="MAX_FILE_SIZE" value="30000" />
<!-- Name of input element determines name in $_FILES array -->
Send this file: <input name="userfile" type="file" />
<input type="submit" value="Send File" />
</form>