Bug #17978: Large file upload doesn't work remotely
| From: | daniel at pop3web dot com dot br | Date: | Tue, 25 Jun 2002 18:52:12 +0000 |
| Subject: | Bug #17978: Large file upload doesn't work remotely | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-12068@lists.php.net to get a copy of this message | ||
From: daniel@pop3web.com.br
Operating system: Windows 2000 Server
PHP version: 4.2.1
PHP Bug Type: HTTP related
Bug description: Large file upload doesn't work remotely
I'm trying to make a page for file uploads. For small files, everything
goes ok, but doesn't work when I try to upload large files.
The limit size for uploading is suposed to be 100Mb. I've set up my
php.ini with this config:
post_max_size = 100M
memory_limit = 128M
upload_max_filesize = 100M
When I access through http://localhost/upload.htm, and
post a large file,
Ok. But if I access the page remotely, or even locally, but using my LAN
IP Address (http://192.168.0.15/upload.htm) and post a large file, either
browser stays as is (hangs) or, most commonly, the browser shows a "server
not found"/"page cannot be displayed" page, instantly. But, as I sad, this
problem occurs only when posting large files.
Additional config:
Browsers: Internet Explorer 6 and Netscape 7 (netscape pops a "document
contained no data" message)
Server API: CGI
PHP Version: 4.2.1
Server Software: Microsoft-IIS/5.0
Here goes the scripts:
// ----- upload.htm ------ //
<form action="upload.php" method="post"
enctype="multipart/form-data"
name="form1">
<p> <input type="hidden" name="MAX_FILE_SIZE"
value="102400000">
<input name="file_name" type="file" id="file_name">
</p>
<p>
<input type="submit" name="Submit" value="Send">
</p>
</form>
// ----- upload.php ------ //
<?php
$temp_file_name = $HTTP_POST_FILES['file_name']['tmp_name'];
$original_file_name = $HTTP_POST_FILES['file_name']['name'];
move_uploaded_file($temp_file_name, $original_file_name);
?>
--
Edit bug report at http://bugs.php.net/?id=17978&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=17978&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=17978&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=17978&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=17978&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17978&r=support
Expected behavior: http://bugs.php.net/fix.php?id=17978&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=17978&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=17978&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=17978&r=globals