locked
Problem in cloudUpload control while file size more than 4 MB.How to resolve ? RRS feed

  • Question

  • User-1913729089 posted

    Hello,

    I am working on radcloudupload control to upload files in amazon s3 server using c#. I am facing problem when I am going to upload a file more than 4 mb. it is saying file size related issue, but I have followed all the steps to upload a file more than 4 mb. code is as below:

    <telerik:RadCloudUpload ID="RadCloudUpload1" runat="server" MaxFileSize="1048576" RenderMode="Lightweight"
                     MultipleFileSelection="Automatic"  OnFileUploaded="RadCloudUpload1_FileUploaded" ProviderType="Amazon"  >
            </telerik:RadCloudUpload> 

    also I have placed the below mentioned points to web.config for large file upload.

    <system.web>
      <httpRuntime maxRequestLength="1048576" executionTimeout="3600" />
    </system.web>

    <system.webServer>   
        <security>
          <authorization>      
          </authorization>
    <requestFiltering>
    <requestLimits maxAllowedContentLength="1048576000" />
    </requestFiltering>
        </security>
    <system.webServer>

    how to resolve?

    Thursday, September 17, 2020 11:28 AM

Answers

  • User753101303 posted

    So it seems clearly shown by the upload control. You changed the 1 Mb limit to only 4 Mb. What is the size of your test file?

    I would rather try for example <telerik:RadCloudUpload ID="RadCloudUpload1" runat="server" MaxFileSize="41943040"  etc... and then I would test for example a 10 Mb file.

    Edit: maxRequestLength is in Kb, the upload control likely uses bytes which is likely where you are confused. Or if you prefer MaxFileSize should be the same or slightly lower than  maxAllowedContentLength.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, September 18, 2020 8:21 AM

All replies

  • User753101303 posted

    Hi,

    And what if you change MaxFileSize="1048576" as well or you tried already? This is an exception message or could it be a message shown by this control even before the upload?

    IMO it's better to quote the exact message (or the best English translation you can) to make clearer which kind of message you see.

    Thursday, September 17, 2020 11:51 AM
  • User-1913729089 posted

    Thank you for replying,Yes I have changed the configuration to <httpRuntime maxRequestLength="4194304" executionTimeout="3600" /> and MaxFileSize="4194304" but still it is not working, please click on the link to check the error image which  i have uploaded in stack overflow also, https://stackoverflow.com/questions/63937152/problem-in-cloudupload-control-while-file-size-more-than-4-mb

    Friday, September 18, 2020 4:42 AM
  • User753101303 posted

    So it seems clearly shown by the upload control. You changed the 1 Mb limit to only 4 Mb. What is the size of your test file?

    I would rather try for example <telerik:RadCloudUpload ID="RadCloudUpload1" runat="server" MaxFileSize="41943040"  etc... and then I would test for example a 10 Mb file.

    Edit: maxRequestLength is in Kb, the upload control likely uses bytes which is likely where you are confused. Or if you prefer MaxFileSize should be the same or slightly lower than  maxAllowedContentLength.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, September 18, 2020 8:21 AM
  • User-1913729089 posted

    Working perfectly. Thank you.

    Friday, September 18, 2020 9:54 AM