FileUpload problematic

From: Date: Fri, 16 Mar 2001 21:19:07 +0000
Subject: FileUpload problematic
Groups: php.general 
Request: Send a blank email to php-general+get-44319@lists.php.net to get a copy of this message
Helloppl, a problem with a file_upload form :-( Here is what I've done so far: File test.php which has the form is this: <HTML> <BODY> <?php include("handle_upload.php"); ?> <FORM ENCTYPE="multipart/form-data" ACTION="<?php print $PHP_SELF ?>" METHOD="POST"> <INPUT TYPE="hidden" NAME="MAX_FILE_SIZE" VALUE="64000"> <INPUT TYPE="submit" VALUE="go!"> <INPUT TYPE="file" NAME="up_file"> </FORM> </BODY> </HTML> Here is the included php file (handle_upload.php): <?php if(isset($up_file)){ print "<P>You have succesfully sent the following file:<BR>\n"; print "path: $up_file<BR>\n"; print "filename: $up_file_name<BR>\n"; print "filesize: $up_file_size<BR>\n"; print "filetype: $up_file_type<BR>\n"; } ?> When one submits a file (file exists and is within given MAX_FILE_SIZE boundaries), the handle_upload.php condition is true, so I get the following output in my browser: You have succesfully sent the following file: path: /tmp/phpvtMKjj filename: test2.jpg filesize: 27365 filetype: image/jpeg <and again the form to upload another file> Then I go and check under /tmp and I do not find anything :-( I have in my php.ini: ;;;;;;;;;;;;;;;; ; File Uploads ; ;;;;;;;;;;;;;;;; file_uploads = On upload_tmp_dir = /tmp upload_max_filesize = 2M I am using Apache 1.3.14 with DSO and php is a .so and Php is version 4.0.4 It is not a permissions problem cause I checked the Apache logs, and all dirs that need to be accessed are actually writable by the httpd user. I have read through "Handling file uploads" (http://www.php.net/manual/it/features.file-upload.php) and I don't see what is wrong :-( thanks ins advance, thalis

« previous php.general (#44319) next »