c# - Supporting byte ranges -


I am developing an ASP .NET application that should be able to serve files that include boundary requests The ASP.NET MVC team has said that, and recommended the use of IIS for the service of stable files.

Here's my problem when users request, they are not including any identifying information in the URL that will map directly to a file. The request may look like this: Within MVC, to resolve that ID, I need to call a web service which will eventually sit on the network share. In addition, we have our custom-built authorization mechanism, before that we must complete each request for the service of the file.

Tomas Piasez has implemented a custom actionarcel that is called the range request support by IIS, by default I have tried to use it, and it seems to work ... but I It seems that there should be a way for IIS to serve a stable file for me.

So, finally, I'm thinking if MVC is possible to receive the request, then certify & amp; Authorize, resolve the ID for a file path on a network share, and then return to the IIS StaticFile handler to actually return the file information.

Yes, it is definitely quite easy to see the real file location and then the user Download the file but, your real problem is the certification of the stable file. How do you do it depends on your needs (i.e., should it continue even after it has been downloaded? Did each file be separately authorized Should go? Or all files Accessibility? Do you need to do extra work, a download has ended ... there are so many variables, and they all suggest different types of solutions.


Comments