html - PHP Uploading Files -


I am having trouble uploading the file to PHP when I submit $$$ [] is empty I It seems that there is such a n00b question: /

My form:

  & lt; Form method = "post" action = "uploadfile.php" & gt; & Lt; Input type = "hidden" name = "MAX_FILE_SIZE" value = "300000" /> Image: & lt; Input name = "ImageFile" type = "file" /> & Lt; Br / & gt; & Lt; Input type = "submit" value = "add image" /> & Lt; Br / & gt; & Lt; / Form & gt;  

Relevant php.ini:

 ;;;;;;;;;;;;;;;;asis :;;;;;;;;; Bin; ; Upload file; ;;;;;;;;;;; 1 ;;;;;;;;;;;;; ; Whether to allow HTTP file uploads. File_uploads = ON; HTTP temporary directory for uploaded files (system will not use default if not specified) Upload_tmp_dir = "c: \ php5 \ upload \"; Maximum allowed size for uploaded files. Upload_max_filesize = 300M 

C: \ php5 \ upload \ IUSR_HOSTNAME is writable by

Any ideas on what else should I check?

Make sure your form tag has this attribute: enctype = "multipart / form- Data "

The file will not be uploaded without it.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -