Ticket T725254
Visible to All Users

DevExtreme- dxFileUploader not uploading file greater than 5 MB

created 6 years ago (modified 6 years ago)

Hi Support,

We are trying to upload pdf file greater than 5 MB in size but it's not happening. We are getting exception "Maximum request length exceeded" (server side).
We have followed following link to achieve.
https://js.devexpress.com/Demos/WidgetsGallery/Demo/FileUploader/Validation/jQuery/Light/And below is our code:

JavaScript
.dxFileUploader({ multiple: true, accept: "*", invalidMaxFileSizeMessage: "File size is too large", uploadFailedMessage: "Upload failed", maxFileSize: 100000000, // this is not working, how can we set max file size as it is not taking more than 5 MB uploadMode: "useButtons", value: [], uploadUrl: "/pdrive/home/uploadfiles?ENTITYID=" + entityID + "&SYSTEMMENUID=" + sysmenuID, onValueChanged: function (e) { debugger var files = e.value; count = files.length-1; $.each(files, function (i, file) { debugger filename = file.name; filetype = file.type; }); }, onUploaded: function (e) {} });

So please let us know how can we increase file size to be uploaded?
Attaching a file more than 5 MB in size so that you could check.

Answers approved by DevExpress Support

created 6 years ago (modified 6 years ago)

Hi Balaji,

This issue is mostly related to your server configuration rather than to client-side FileUploader settings. It looks like your server rejects requests that exceed a specific limit, whereas the widget tries to send the entire file in a single request. I suggest you refer to a relevant technical forum to tune your server so that it accepts larger requests. For example, review Maximum request length exceeded.

Alternatively, to overcome the server limit, implement the capability to send files in chunks as demonstrated in the Chunk Uploading demo.

    Comments (1)

      Thanks we have fixed the issue.

      Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

      Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.