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

Upload File Size

Is there any upload file size limit in the File Manager? If yes, how do I change it? Is there an upper limit?


1 Reply

PM Prasanth Madhaiyan Syncfusion Team March 27, 2023 10:36 AM UTC

Hi Amjad,


Greetings from Syncfusion support.


We have validated your reported query in the Blazor FileManager component by preparing the sample. We understand that you want to know regarding the upload file size limit in the FileManager. By default upload size of the FileManager component is 30MB. After enabling the UploadSettings and setting the MaxFileSize value as “524288000, you can upload the larger files in FileManager component at your end. Check the below screenshot.


[Index.razor]

 

<SfFileManager TValue="FileManagerDirectoryContent">

        <FileManagerAjaxSettings Url=http://localhost:62869/api/FileManager/FileOperations

                                 UploadUrl=http://localhost:62869/api/FileManager/Upload

                                 DownloadUrl=http://localhost:62869/api/FileManager/Download

                                 GetImageUrl=http://localhost:62869/api/FileManager/GetImage>

        </FileManagerAjaxSettings>

    <FileManagerUploadSettings MaxFileSize="524288000" ></FileManagerUploadSettings>

</SfFileManager>

 

[web.config]

<security> 

      <requestFiltering> 

        <requestLimits maxAllowedContentLength="1073741824" ></requestLimits> 

      </requestFiltering> 

    </security> 



For your reference, we have attached the sample and Physical File Service Provider.


Provider: https://www.syncfusion.com/downloads/support/directtrac/general/ze/PhysicalFileProvider-1760058453.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 and let us know if you need any further assistance.


Regards,

Prasanth Madhaiyan.


Attachment: BlazorFileManager_84b40748.zip

Loader.
Up arrow icon