I have run a simple file upload and it doesn’t work for me. Can someone tell me what the problem is? I have two simple files (one file will do the work too),
<form enctype=”multipart/form-data” action=”uploader.php” method=”POST”>
<input type=”hidden” name=”MAX_FILE_SIZE” value=”100000″ />
Choose a file to upload: <input name=”uploadedfile” type=”file” /><br />
<input type=”submit” name=”submit” value=”Upload File” />
</form>
</body>
</html>
The output of uploader.php displays
tmp name is
name is DSC00678.JPG
size is 0
type is
if I tried to upload a jpg file, and sometime displays correct info for pdf and doc file, but some time does not.
tmp_name, size and type used to work for me all the time, suddenly it’s not working. I only have one linux machine which runs PHP. I’m running php 5.2.4 on linux/apache.
Thanks.