I have a problem when try to upload a quite BIG file (more than ~600K, less than 600K is OK). My browser said : "The page can not be displayed" - in IE and "The connection was reset" - in Mozilla Firefox.
Have someone found the problem like this before? And how can I solve it??
My very very simple code is :
<html>
<head>
<title>Test Upload...</title>
</head>
<body>
<form enctype="multipart/form-data" action="<?= $_SERVER['PHP_SELF'] ?>" method="POST">
<input type="hidden" name="MAX_FILE_SIZE" value="1024000">
Send this file: <input name="picture" type="file">
<input type="submit" value="Send File">
</form>
<?php
if($_FILES)
{
echo "<hr/>";
echo "<pre>";
print_r($_FILES);
echo "</pre>";
}
?>
</body>
</html>
My php.ini :
;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;
; Whether to allow HTTP file uploads.
file_uploads = On
; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
;upload_tmp_dir =
; Maximum allowed size for uploaded files.
upload_max_filesize = 8M
I'm using :
PHP Version 4.3.2
System: Linux 2.4.21-9.ELsmp #1 SMP Thu Jan 8 17:08:56 EST 2004 i686
Server API: Apache 2.0 Filter
Configuration PHP Core
post_max_size : 8M
file_uploads : On
upload_max_filesize : 8M