[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[EP-tech] Fix for UploadMethod_file_change in IE8
- Subject: [EP-tech] Fix for UploadMethod_file_change in IE8
- From: Jon.Hallett at uwe.ac.uk (Jon Hallett)
- Date: Thu, 9 Aug 2012 16:57:41 +0100
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...