Upload large files
-
hi all, when i try to upload large files (file length is bigger then maxRequestLength i recive error page(this page can't be displayed dns error) all i want to make is to find a way to display error page instead of this default error page. i tried to use custom error page but it doesn't work. does any one has idea? Thanks in advance.
marcoryos
-
hi all, when i try to upload large files (file length is bigger then maxRequestLength i recive error page(this page can't be displayed dns error) all i want to make is to find a way to display error page instead of this default error page. i tried to use custom error page but it doesn't work. does any one has idea? Thanks in advance.
marcoryos
Can't you check ContentLength property of input file ? I am guessing you should get this properrty before you upload ? Else it is always a good idea to make use of page_error or Application_Error event to catch unknown errors.
-
hi all, when i try to upload large files (file length is bigger then maxRequestLength i recive error page(this page can't be displayed dns error) all i want to make is to find a way to display error page instead of this default error page. i tried to use custom error page but it doesn't work. does any one has idea? Thanks in advance.
marcoryos
Hmm, I think it would be even better to validate the size before even trying to upload the file. You can do this by adding a custom validator that checks the size of the file the user choose to upload with the maximum allowed size. This provides the user with a more friendly way of saying: No, you can't upload this.
WM. What about weapons of mass-construction?
-
hi all, when i try to upload large files (file length is bigger then maxRequestLength i recive error page(this page can't be displayed dns error) all i want to make is to find a way to display error page instead of this default error page. i tried to use custom error page but it doesn't work. does any one has idea? Thanks in advance.
marcoryos
Hi, Maximum upload size for a file is mentioned in machine.config you can override the settings by mentining it in your project web.config
Regards,
Sushant Duggal.