[EP-tech] Fix for UploadMethod_file_change in IE8
Jon.Hallett at uwe.ac.uk
Thu Aug 9 16:57:41 BST 2012
A minor bug in IE8 with file upload. The file input element on the upload screen isn't reset after UploadMethod_file_change runs. Our users complained that they often then clicked upload and uploaded twice...
I think the problem is that .value is read-only in IE8. Microsoft say it is, for 'security reasons'. Certainly the input.value = null, doesn't work in IE8.
Anyway, a patch:
@@ -339,6 +339,7 @@ function UploadMethod_file_change(input,component,prefix)
input.value = null;
form.removeAttribute( 'target' );
form.setAttribute( 'action', orig_action );
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Eprints-tech