Save file locally from asp.net without "save as .."? Is ActiveX the only solution?

I am creating a web application in ASP.NET MVC C # (including ajax / jquery) and must save the file locally to the client hard drive.

I have another application that will query the directory for new files, so it’s important that the files from the website fall into this place, so the “save as ...” display will not work.

What are my alternatives? (Unfortunately, I cannot rewrite this external application to work in any other way.) Should I write a web application in silverlight instead? Should I use an ActiveX object? ActiveX feels that way 1995, though .. Are there any other options now?

+3
source share
2 answers

I will vote for the Silverlight solution.

But instead of completely creating your site using Silverlight, just write a small and hidden Silverlight component that will receive the remote location of the files and save it in the user's local file system.

Check out this other answer in Stackoverflow:

And watch this movie:

+2
source

This will be a security feature in the browser. It is not permissible to provide a website with access to a local folder without any dialogue. ActiveX can work because it is much less secure.

Can you find a different approach?

#, HTTP- -.

0

All Articles