Hello,
I'm a bit stuck with a form to upload files which appears to happily accept other file types, i.e. gif, text but will not accept jpg.
<form enctype=\"multipart/form-data\" name='newimage' method='post' action='$_SERVER[PHP_SELF]'>
<input type='hidden' name='MAX_FILE_SIZE' value='1024'>
<input name='fil' type='file' size'80'/>
I've got the relevant bits in my form and to check what's happening:
print_r ($_FILES);
which gives this for a jpg file:
[fil] => Array
(
[name] => uploadtest.jpeg
[type] =>
[tmp_name] =>
[error] => 2
[size] => 0
)
but this for the others:
[fil] => Array
(
[name] => latin.txt
[type] => text/plain
[tmp_name] => C:\WINDOWS\TEMP\phpB2F5.TMP
[error] => 0
[size] => 998
)
I've also tried using different versions of the jpg extension, i.e. jpg, JPG, jpeg, JPEG. Also in the php.ini file file_uploads is turned on and jpg support is enabled.
I'm running windows 98.
Can anyone help?
thank you very much in advance ...