Page 1 of 1

uploading files

Posted: Sun Jun 13, 2010 5:53 pm
by amount
Hello,
I've got several scripts which successfully upload files using various examples on the web. However, they all use <input type='file'.....> as well as S_FILES. I may be dense, but I can't figure out how to upload a file if I don't get the name from the input tag. What do I put as parameters to move_upload()?
Thanks
Tony

Re: uploading files

Posted: Sun Jun 13, 2010 6:59 pm
by Jonah Bron
You can check for the existence of the uploaded file with isset().

Re: uploading files

Posted: Sun Jun 13, 2010 7:06 pm
by amount
Thanks, but not quite what I'm asking. In fact, having just written out a detailed explanation of what I'm asking, I've realised what the answer is.
Tony

Re: uploading files

Posted: Mon Jun 14, 2010 2:27 am
by amargharat
If you want to upload files, you need to use filebox i.e.<input type='file' name="file" />.
You can't upload files without it.

when submit the form file gets uploaded into temp folder and then we use move_uploaded_file