Click here to Skip to main content
15,896,154 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello I've been having problems with opening files from an MVC.net (MVC 5) application. This application enables users to upload files to a shared disk (doc, pdf, jpg), wich in turn are displayed as a link in the application (link expample, file://computer_name/shared_folder/file_name.wtf). I understand that chrome does not allow this by default (xss script attacks), but this does not work in firefox or IE as well (i get no error messages or wornings) only a blank page opens. If the file is in the applicatoin folder on the server, evrything works as expected (word file opens in word etc...) The shared folder is mapped in the IIS as a web application.

Has anyone had any similar problems or knows how to do this kind of thing better?

PS I cannot change the process or put the files in a database, they must reside on a shared disk, and they have to open in the appropriate application (not download).

Thank you.
B
Posted
Updated 16-Apr-14 20:37pm
v2

Try right click on the link and click save as? what do you get? does it save the required file to your desk or still blank?
 
Share this answer
 
Ok I got it working, well the correct links anyway (if I copy the link and paste it to a new window, the link works and the file opens). I guess I have to figure it out how to open "file://" link type in chrome or in firefox. Any suggestions? Disableing the feature that blocks this in chrome or firefox on evry computer is out of the question, becosue this is a system with 100+ users, so this solution is not acceptable.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900