How to use: ActionFilter to create thumbnails like HTTP handler

sorry for the chronicle question, but with an HTTP handler it's easy to do this, just intercept the image file and the parameters and the HTTP handler will do it for you, for example

the question arises, how can you do this with ActionFilter and intercept any image?

early.

0


a source to share


1 answer


The action filter only processes the current request, and only if the request is for an ASP.NET MVC controller. Images are processed in separate separate requests. Even though you can define which images will be requested when requested by the controller, you will not be able to return multiple files in a single request. The only way to actually capture requests for the images themselves and generate thumbnails via a get request would be with a regular HttpHandler.



+1


a source







All Articles