Creating A Private Photo Gallery Using Asp.Net MVC

可紊 提交于 2019-12-03 03:45:25

This link explains how to create a custom ImageResult class. I was able to do exactly what I needed following it

https://blog.maartenballiauw.be/post/2008/05/13/aspnet-mvc-custom-actionresult.html

It's not a complete answer but I'd look at using a route that restricts access to the actual files themselves and then possibly use authentication of the action that gets an image.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!