Unplanned
Last Updated: 27 Nov 2026 08:20 by ADMIN
Paul
Created on: 23 Nov 2026 12:33
Category: Upload
Type: Feature Request
1
Add ability to enforce total file upload size

We have a scenario where we are using the Upload component and need to enforce a total upload size across all files selected for upload (e.g. 25 MB total).

Other than the necessary server-side checks for this, it is very beneficial for users to be informed of this on the front-end, so they do not get surprised by error messages after they try uploading.

There are a few ways that this could be achieved.

1) (Preferred) Add an option to the upload component for the total file size in bytes allowed (default is null/undefined). Show an error/message in the component if this is exceeded. Benefits of this approach:

  • Works with autoUpload being true or false.
  • We don't inspect file lists to check validity + status as it is handled internally
  • No need for us to manually manipulate the component when different events occur as these are handled internally
  • Provides opt-in behaviour that doesn't break existing implementations.

2) Implement the requested feature to allows us to keep cancelled files in the queue (Ticket #1720671). If this is implemented, then we can check the overall files being uploaded at upload time and cancel the event + display an error manually. Benefits:

  • Only need to listen for an upload event and display the error then (plus the remove event if we want to hide the error).
  • Avoids undesirable behaviour of disabling buttons

Drawbacks:

  • Doesn't work with autoUpload set to true
  • Requires manually inspecting file lists to check the validity and status of files there

3) Add the ability to enable/disable the upload button directly in the component. Just setting the "disabled" status to true for the Upload doesn't work as it disables everything and makes it impossible for the user to removing the offending file(s). We can listen to select/remove/clear events, check the overall files being uploaded, display errors and then enable/disable the upload button. Quite a few drawbacks:

  • Doesn't work with autoUpload set to true
  • Requires manually inspecting file lists to check the validity and status of files there
  • Requires listening to multiple events and manipulating the component manually.
  • Requires disabling buttons which is bad for accessibility

At the moment in our environment, we have to do a version of option 3) with workarounds to enable/disable the upload button as there isn't a method to do so directly.

1 comment
ADMIN
Zornitsa
Posted on: 27 Nov 2026 08:20

Hi Paul,

Indeed, at present, the Upload component does not provide a built-in option to set a total file size limit across all selected files. Implementing this functionality requires custom logic on the client side. Your request to enforce a total upload size limit in the Upload component is valid and aligns with common user experience needs.

In this line of thought, I am marking this feature request as "Unplanned", and we will continue to monitor customer demand for this feature and update our documentation and release notes if it is implemented.

Regards,
Zornitsa
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.