v
Not logged inv
SearchAsk a QuestionReport an IssueMake a SuggestionMy Questions and Issues
Issue Details
Find By ID

ASPxUploadControl - Maximum request length message isn't localizable

Issue Details

Log in to Track Changes or Edit
Q205201
Bug Report
Manuel Navarro
Yes
Processed
Fixed
Yes
.NET (ASP.NET)
ASPxperience Suite
9.1.2
v2009 vol 2.0; v2009 vol 1.4
Windows XP
Microsoft Visual Studio 2008
5/14/2009 2:06:10 PM
-> Created by Manuel Navarro 1 5/8/2009 4:33:28 PM

Hi,

I've implemented an ASPxUploadControl with the properties MaxFileSize="400000" and MaxFileSizeErrorText="El archivo excede el tamaño máximo de carga". Everything seems to work fine, and I get my custom error text as expected when I try to upload a file over 400Kb.

But here's the problem, when I try to upload a file that exceeds the maximum request length for the application I got the following error message:

"The total content length of the files selected for uploading exceeds the allowed maximum request length (8192 Kb) defined by the application."

I don't know where that message comes from... ¿why isn't my custom error text showing?

Thanks in advance for your help.

<- Reviewed by DevExpress Team 5/11/2009 8:59:36 AM
<- Processed (Answered) by DevExpress Team 5/11/2009 7:14:19 PM

Hi Manuel,

This behavior is by design.
To validate the file, the ASPXUploadControl first uploads it. It is necessary to determine the file content and other info.
Refer to this thread to learn how to avoid this problem: The ValidationSettings.MaxFileSize option takes no effect when the file size exceeds the maxRequestLength.
Let me know whether this helps.

Thanks,
Alex

-> Reactivated by Manuel Navarro 1 5/12/2009 1:22:52 PM

Hi Alex,

First thanks for your fast answer and excellent support. But I'm afraid I didn’t make myself completely clear: the MaxFileSize attribute is working correctly using the HttpHandler as explained in the issue you refer. My problem is that I want to show my custom error text as I define it "El archivo excede el tamaño máximo de carga", but instead I'm getting the error text "The total content length of the files selected for uploading exceeds the allowed maximum request length (8192 Kb) defined by the application."

Is there a way to show my spanish text?

BTW the spanish text is showing while the file doesn’t exceeds the maximum request length. As soon as the file is bigger than that limit, the english text is shown.

Thanks.

<- Updated by DevExpress Team 5/12/2009 2:28:50 PM

Hi Manuel,

Thanks for the clarification. Unfortunately, it appears to be an actual ASPxUploadControl issue.
I believe it's better to move this thread to the Bugs section. I'll update the Subject accordingly.
Our developers will continue looking into this problem, and we'll keep you informed on our progress.
Sorry for the inconvenience.

Thanks,
Alex

<- Reproduced by DevExpress Team 5/12/2009 2:29:06 PM
<- Processed (Fixed) by DevExpress Team 5/12/2009 4:12:09 PM

Hi!

To localize the error text "The total content length of the files selected for uploading exceeds the allowed maximum request length {0} defined by the application." we've added a new ASPxperienceStringId.UploadControl_MaxRequestLengthExceeded key to the DevExpress_Web_v9_1.resx file.
How to localize the ASPxUploadControl using resource file. See the following online help article:
Localizing DevExpress ASP.NET Controls
This improvement will be available in the v2009 vol.1.4 version of our product.

Thanks,
Andrew R

Log in to Track Changes or Edit

Peer-to-Peer Discussion in DevExpress Forums

No discussion on this article has been started yet.

Please login to start discussion.

v
v
Search
Searching Tips