Upload fails after 125MB

Hello,
Uploads work fine, but when uploading a file > 125MB, the dotnet core controller errors because the args parameter comes in null.  If the file is 125MB the args parameter comes in fine.

This method in AzureProviderController.cs
        [Route("AzureUpload")]
        [DisableRequestSizeLimit]
        public ActionResult AzureUpload(FileManagerDirectoryContent args)

and in my angular page, i have these upload settings:
    this.uploadSettings = { autoUpload: true, minFileSize: 0, maxFileSize: 900000000, allowedExtensions: '', autoClose: false };

Why would it not send in the args parameter to the controller if the upload size is large?  Is there some kind of limitation of this control?

3 Replies 1 reply marked as answer

SP Sowmiya Padmanaban Syncfusion Team October 23, 2020 10:38 AM UTC

Hi Jason McCoy,  
 
Greetings from Syncfusion support. 
 
We have checked your requirement with FileManager component. The default upload file size of FileManager component is 30Mb. If you want to upload the file more than 30mb, you can achieve it by setting the maxFileSize in UploadSettings of FileManager component. 
 
Refer the below KB link for your reference. 
 
Refer the below stackoverflow link. 
 
In upload operations, you need to allow the file size of Maximum limit. Refer the below code snippet. 
 
[RequestFormLimits(ValueLengthLimit = int.MaxValue, MultipartBodyLengthLimit = int.MaxValue)] 
        [DisableRequestSizeLimit] 
        [Consumes("multipart/form-data")] 
        // Uploads the file(s) into a specified path 
        public ActionResult AzureUpload(FileManagerDirectoryContent args) 
        { 
            if (args.Path != "") 
            { 
             } 
} 
 
Refer the sample link below. 
 
Please let us know, if you need any further assistance. 
 
Regards,  
Sowmiya.P 


Marked as answer

JM Jason McCoy October 23, 2020 02:36 PM UTC

Thank you. This was helpful.


SP Sowmiya Padmanaban Syncfusion Team October 26, 2020 04:42 AM UTC

Hi Jason,  
  
Most Welcome. We are happy to hear that your problem has been resolved. Please contact us, if you need any help from us. 
  
Regards, 
  
Sowmiya.P

Loader.
Up arrow icon