|
| HTTPHandler Question... |
 |
Mon, 31 Mar 2008 17:24:09 +000 |
Hi everyone,
I have the following problem: In my ASP.Net 2.0 Web Project Application the
users have the ability to upload files, which will be stored in database. A
common problem is the file size limit of ASP. If a file larger than the set
limit is uploaded, ASP is throwing an exception before code behind is reached.
So I guess, I have to create a handler, which will check the request.
I have written handlers, for example for showing images, etc. But what I want to
know is, how can a Handler just be executed only on file upload? Do I have to
register it anywhere?
Or if you have any other ideas, on how I can catch the problem, let me know.
Thanks,
Koray
|
| Post Reply
|
| Re: HTTPHandler Question... |
 |
Wed, 2 Apr 2008 12:55:09 +0000 |
Hi Koray,
I think you can use the existing control to handle the file uploading, for
example:
http://darrenjohnstone.net/2007/06/02/writing-an-aspnet-file-upload-module/
http://www.asp.net/community/control-gallery/Item.aspx?i=43
They are actually Http Modules. You can find source code of the first example.
|
| Post Reply
|
|
|
|
|
|
|
|
|
|