T
Thomas Due
Hi,
I am writing an ASP.NET project where I allow users to upload files to
the server. I have changed to web.config to allow a total file size of
100MB. My problem is that if the total file size exceed this amount the
page simply stops works, and I get a "Server unreachable" error.
Is there any way to handle this, so I am able to present the user with
a nice error message telling him that the maximum file size has been
exceeded.
Furthermore, it is my understanding that the server uploads all files
to memory before I get to handle them with HtmlInputFile. Is there any
way to perform some checking beforehand, by using http header handle or
something?
Examples will be appreciated.
Thank you in advance,
I am writing an ASP.NET project where I allow users to upload files to
the server. I have changed to web.config to allow a total file size of
100MB. My problem is that if the total file size exceed this amount the
page simply stops works, and I get a "Server unreachable" error.
Is there any way to handle this, so I am able to present the user with
a nice error message telling him that the maximum file size has been
exceeded.
Furthermore, it is my understanding that the server uploads all files
to memory before I get to handle them with HtmlInputFile. Is there any
way to perform some checking beforehand, by using http header handle or
something?
Examples will be appreciated.
Thank you in advance,