We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

File Size too large

We're having an issue with files that are over 30 mb. We're using Amazon S3 for storage. ASP.net tells us the file size is too large. It's not on the front end side just the backend. Is there any way we can increase the size over 30MB?



1 Reply 1 reply marked as answer

SP Sowmiya Padmanaban Syncfusion Team December 11, 2020 12:55 PM UTC

Hi Lester,  
 
Greetings from Syncfusion support. 
 
The default upload size of FileManager component is 30MB. You can change the upload file size by using the uploadSettings property of file manager component. Using this property, you can set the maxFileSize and minFileSize.  
 
Note: Size should be set in bytes. 
 
 
Please, refer the below KB link. 
 
 
Please, refer the below code snippet. 
 
  <FileManagerComponent 
            id="overview_file" 
            ajaxSettings={{ 
              url: this.hostUrl + "api/AmazonS3Provider/AmazonS3FileOperations", 
              getImageUrl: this.hostUrl + "api/AmazonS3Provider/GetImage", 
              uploadUrl: this.hostUrl + "api/AmazonS3Provider/AmazonS3Upload", 
              downloadUrl: this.hostUrl + "api/AmazonS3Provider/Download" 
            }} 
            view={"Details"} 
            uploadSettings={{ 
              maxFileSize: 40000000 
            }} 
          > 
            <Inject services={[NavigationPane, DetailsView, Toolbar]} /> 
          </FileManagerComponent> 
 
If you want to increase the file size in server side, please refer the following link. 
 
 
Please, refer the below code snippet. 
 
<security> 
      <requestFiltering> 
        <requestLimits maxAllowedContentLength="1073741824" ></requestLimits> 
      </requestFiltering> 
    </security> 
 
Please let us know, if you need any further assistance. 
 
Regards,  
Sowmiya.P 


Marked as answer
Loader.
Live Chat Icon For mobile
Up arrow icon