x_goose_x
02-20-2003, 08:32 PM
I know you've probably had this question asked multiple times, but I searched through the post and found nothing that helped.
I can't get a file to upload using php. I get no errors, just the file doesn't appear. I'm using Apache 1.3.26, PHP 4.2.2 on Windows 2000 Server. I've used other file system scripts such as read/write, dir listing. Here's the file upload part of my php.ini and the upload script. Thanks in advance.
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 = C:\Fireserv\www\uploads
; Maximum allowed size for uploaded files.
upload_max_filesize = 2M
upload.php :
<form enctype="multipart/form-data" method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="3000000000000">
Send this file: <input name="userfile" type="file">
<input type="submit" value="Send File">
</form>
I can't get a file to upload using php. I get no errors, just the file doesn't appear. I'm using Apache 1.3.26, PHP 4.2.2 on Windows 2000 Server. I've used other file system scripts such as read/write, dir listing. Here's the file upload part of my php.ini and the upload script. Thanks in advance.
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 = C:\Fireserv\www\uploads
; Maximum allowed size for uploaded files.
upload_max_filesize = 2M
upload.php :
<form enctype="multipart/form-data" method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="3000000000000">
Send this file: <input name="userfile" type="file">
<input type="submit" value="Send File">
</form>