asp.net - Does PostedFile.FileName work differently in .Net 4.0? -


I am working on an ASP.NET site which allows users to link documents using the UNC path is. This site is used by our customer for internal processes, so all users on their domain should have access to the UNC path.

When a user wants to add a linked document, then by selecting that file FileUpload control first in Net 2.0, the postfile of control.Filename property returned the file name and full UNC path. Now we are using .NET 4.0 and it only returns the file name.

My main question is: Does the postfile work differently in NET 4.0 compared to file name 2.0?

If not, what could be the reason for this problem?

I think this is not Net but Internet Explorer which has overrun in security.

From:

Additionally, include the local directory path when uploading files ??? ? The URL for the Internet zone is set to "disable" the operation. This change prevents potentially sensitive local file system information from leaking on the Internet. For example, instead of submitting the entire path C: \ users \ Ericlo \ document \ secret \ image.png, Internet Explorer 8 will now submit now only file name image.png .

  1. You can change the logic in the server side code - this client-side file should not be dependent on the path and only The filename should use the FileUpload control property.

  2. Enable IE8 / IE 9 options to include local directory paths for internet zones on client-side (disturbed user).

    Enter image details here

Comments