Question

I am using a file upload plugin in my application, but the actual file name user selected using the browser button is behaving differently in IE 10 and IE 11

<input type="file" name="testFile" id="testapiFile">

I am submitting the form using jquery form submit method.

In the network tab I am seeing the file name going as the full path (C:\fullpath\test.doc), but in server side, for IE 10, i am getting as test.doc and in IE11 C:fullpathtest.doc (getting an invalid path name)

Any ideas ?

Thanks, Prats

Was it helpful?

Solution

This may help - perhaps the security settings in IE11 are different?

http://msdn.microsoft.com/en-us/library/ie/ms535263(v=vs.85).aspx

Windows Internet Explorer 8 and later. When a file is selected by using the input type=file object, the value of the value property depends on the value of the "Include local directory path when uploading files to a server" security setting for the security zone used to display the Web page containing the input object. For more information, see value.

Windows Internet Explorer 7 and later. By default, Internet Explorer does not include folder or directory path information when uploading files to sites in the Restricted zone. This improves security by preventing information disclosure. Also, to improve accessibility, the input type=file element now contains two accessible elements—one for the input box and one for the Browse button. This change is applicable only to accessibility tools; script implementations are not affected.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top