Hi Rashnek,
Greetings from
Syncfusion support.
We have validated your reported query in the React
FileManager component by preparing the sample. We understand that you are
facing issues while uploading a larger file in the FileManager. By default
upload size of the FileManager component is 30MB. After enabling the uploadSettings
and setting the maxFileSize
value as “524288000”, we are unable to reproduce the
reported issue. We were able to update the files larger than 30MB in the Amazon
S3 Cloud File system provider at our end. Check the below screenshot.
Refer to the below code snippet.
[index.js]
<FileManagerComponent
id="overview_file"
ajaxSettings={{
url: this.hostUrl + "api/AmazonS3Provider/AmazonS3FileOperations",
getImageUrl: this.hostUrl + "api/AmazonS3Provider/AmazonS3GetImage",
uploadUrl: this.hostUrl + 'api/AmazonS3Provider/AmazonS3Upload',
downloadUrl: this.hostUrl + 'api/AmazonS3Provider/AmazonS3Download'
}} view={"Details"}
uploadSettings={{
maxFileSize: 524288000
}}>
<Inject services={[NavigationPane, DetailsView, Toolbar]}/>
</FileManagerComponent>
[web.config]
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="1073741824" ></requestLimits>
</requestFiltering>
</security>
|
For your reference, we have attached the sample and Physical
File Service Provider.
Sample: https://stackblitz.com/edit/react-3aeapx?file=index.js
Provider: https://www.syncfusion.com/downloads/support/directtrac/general/ze/amazon-s3-aspcore-file-provider-1967566561.zip
Also, if you want to increase the file size on the server
side, please refer to the following link.
https://www.talkingdotnet.com/how-to-increase-file-upload-size-asp-net-core/
Please check the shared details. If the issue still
persists, please provide us with an issue-replicated sample along with an error
stack trace. Have you done any customizations for the Upload file operation at
the server end? These details would help us with further validation and provide
a prompt resolution. Let us know if you need any further assistance.
Regards,
Prasanth Madhaiyan.