Problems with <input type="file">
Posted on 2003-11-14
I'm hoping that someone can help me out with this because its driving me crazy!
On my site i have a link that allows users to upload images. When they click the link a java created pop up window is displayed which asks users to locate the file on thier computers through the use of <form> tags and a <input type="file" name="fileName"> input field. Upon hitting the submit button, they user is taken to a page where my ASP script handles the file.
The problem that im having is that for some reason everytime i hit submit with a value in the file input field (ie. someone has choosen a specific file to upload), the file field becomes blank the form won't submit to the next page. Only when no value has been entered in the file field does the submit button actually work.
Now, i tried to simplify the code as much as possible so i don't think i've made a mistake because i've done procedures similar to this a few times at other places on the site. I've also taken the code and called the file outside of the java pop-window and its worked fine.
Has anyone ever heard of an issue with <input type="file"> and java pop-ups? Shouldn't i be able to do this?
Any suggestions or work arounds would be greatly appreciated.
Thanks in advance.