RadzenUpload UploadProgressArgs limiting size of file to 2,14GB #280

Closed
opened 2026-01-29 17:34:40 +00:00 by claunia · 2 comments
Owner

Originally created by @MarcinGadomski94 on GitHub (Dec 9, 2021).

Describe the bug
The RadzenUpload component allows to only upload files no larger than 2,14GB, since UploadProgressArgs.Loaded and UploadProgressArgs.Total parameters are integers (max 2147483647 bytes). I believe that if somebody wants to use larger files upload, those parameters should have type of long (max 9223372036854775807 bytes / 9223370000 gb).

To Reproduce
Steps to reproduce the behavior:

  1. Make sure that you can see expanded exception messages
  2. Place RadzenUpload component on your website
  3. Create handler for Progress for RadzenUpload that takes in UploadProgressArgs argument
  4. Start the website
  5. Open console in your browser
  6. Try to upload file larger than 2.15GB
  7. See error (JSON cannot be parsed....)

Alternatively link your repo with a sample project that can be run.

Expected behavior
File would be uploaded without any issues

Screenshots
image

Desktop (please complete the following information):

  • OS: Mac OS Monterey 12.0.1
  • Browser Safari
  • Version 15.1

Additional context

Originally created by @MarcinGadomski94 on GitHub (Dec 9, 2021). **Describe the bug** The RadzenUpload component allows to only upload files no larger than 2,14GB, since UploadProgressArgs.Loaded and UploadProgressArgs.Total parameters are integers (max 2147483647 bytes). I believe that if somebody wants to use larger files upload, those parameters should have type of long (max 9223372036854775807 bytes / 9223370000 gb). **To Reproduce** Steps to reproduce the behavior: 1. Make sure that you can see expanded exception messages 2. Place RadzenUpload component on your website 3. Create handler for Progress for RadzenUpload that takes in UploadProgressArgs argument 4. Start the website 5. Open console in your browser 6. Try to upload file larger than 2.15GB 7. See error (JSON cannot be parsed....) Alternatively link your repo with a sample project that can be run. **Expected behavior** File would be uploaded without any issues **Screenshots** ![image](https://user-images.githubusercontent.com/23195048/145399761-319603ca-d0e3-47a2-b6d6-0732fe4e262f.png) **Desktop (please complete the following information):** - OS: Mac OS Monterey 12.0.1 - Browser Safari - Version 15.1 **Additional context** ---
Author
Owner

@venetasoft commented on GitHub (Apr 27, 2022):

Download the Radzen source code, it's an easy fix.
I've done it, it's a pair of 'int' to change into 'long'

@venetasoft commented on GitHub (Apr 27, 2022): Download the Radzen source code, it's an easy fix. I've done it, it's a pair of 'int' to change into 'long'
Author
Owner

@akorchev commented on GitHub (Apr 27, 2022):

Should be fixed by 9493cbc6ff

@akorchev commented on GitHub (Apr 27, 2022): Should be fixed by https://github.com/radzenhq/radzen-blazor/commit/9493cbc6ff9db389cd139019338afafe7599afec
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#280