Hello everyone,
I've got a problem with file uploads.
When submitting the Form only the name and type variables are filled; the temporary location and filesize aren't set.
My Form:
<FORM ENCTYPE="multipart/form-data" ACTION=<? echo "'$PHP_SELF'"; ?> METHOD=POST>
<INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="1000">
Send this file: <INPUT NAME="userfile" TYPE="file">
<INPUT TYPE="submit" VALUE="Send File">
</FORM>
The Code:
echo "
name: ". $userfile_name ."<br>
tmp_name: ". $userfile ."<br>
size: ". $userfile_size ."<br>
type: ". $userfile_type ."<br>
";
The result:
$userfile_name and $userfile_type are set correctly,
$userfile and $userfile_size are empty
Regards Simon.