T
Tim Slattery
I'm (still) using Stickman's multiple file upload script. That results
in some number of <input type="file"...> elements, one of which has no
value. My file upload backend doesn't like empty elements, so I want
to stop that one from uploading.
So I have a Javascript that steps through the <input type="file"...>
elements, finds the one where value="", and sets disabled=true for
that element. On Safari, IE, and Firefox (and Netscape's Firefox mode)
this works, the disabled element is not submitted. On Opera, the empty
element is submitted and my backend barfs.
Is Opera somehow idiosyncratic in the way it handles this? Do I need
to set some other property?
in some number of <input type="file"...> elements, one of which has no
value. My file upload backend doesn't like empty elements, so I want
to stop that one from uploading.
So I have a Javascript that steps through the <input type="file"...>
elements, finds the one where value="", and sets disabled=true for
that element. On Safari, IE, and Firefox (and Netscape's Firefox mode)
this works, the disabled element is not submitted. On Opera, the empty
element is submitted and my backend barfs.
Is Opera somehow idiosyncratic in the way it handles this? Do I need
to set some other property?