1 Solution
Hi Thomas,
Please refer to the ASPxUploadControl - The "The server encountered an internal unspecified error that prevented it from fulfilling the request." error occurs report were we discussed a similar issue.
See Also:
Uploading Large Files
-
Sorry, I think you misunderstood. I'm not worried about the error message as such - I'm worried that I can't specify a custom text for it by changing the GeneralErrorText setting.
-
Hi Thomas,
I am afraid there are no any way to customize the error message in the Upload control when a file size is larger than the maxRequestLength property value. The best way to accomplish your task is to set the maximal file size via the ASPxUploadControl.ValidationSettings.MaxFileSize property.
We have discussed this issue in the ASPxUploadControl - How to customize the error message when the MaxRequestLength value is exceeded ticket.
-
Well, in order to use the MaxFileSize, I must set maxRequestLength to the largest thinkable value. In my case, I want to allow users to upload up to 4 MB - knowing the dummies out there, I would have to set maxRequestLength to 20 or 30 MB. That could eat up my servers RAM and would make it (even more) vulnerable to DOS attacks.
I have now patched the binary resource.dll with a hex editor and modifed the error message in a suitable way (so that it mentions the 4 MB system limit). Too bad there is no other way to change that easily...
Is your intention to post an answer to your own question?
- If so, then proceed.
- If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
- If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.
Facebook
Twitter
Google+