I figured out another way. I used the setAttribute() method to change the type
to "text", then set the value to "", and changed the type back to "file".
Here's the code:
t = /*set this to be an DOM reference to the file upload field*/;
t.setAttribute("type", "text");
t.value = "";
t.setAttribute("type", "file");
I figured out another way. I used the setAttribute() method to change the type to "text", then set the value to "", and changed the type back to "file".
Here's the code: t = /*set this to be an DOM reference to the file upload field*/; t.setAttribute("type", "text"); t.value = ""; t.setAttribute("type", "file");
Denny