Forum Moderators: open
In a form there there is the following:
<input type="file" name="f_add[]" size="40" onClick='javascript:parse_file(value);'/>
The javascript just does some parsing of the file name and populates some hidden fields.
Something that I noticed is that on some browsers the javascript is run before a file has been selected (immediately upon hitting the browse button) causing the upload to fail because the hidden fields are needed.
I was wondering if this is coded incorrectly or if this is just a browser issue.