Last post Sep 18, 2020 09:54 AM by soumenh
Sep 17, 2020 11:28 AM|soumenh|LINK
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" >
also I have placed the below mentioned points to web.config for large file upload.
<httpRuntime maxRequestLength="1048576" executionTimeout="3600" />
<requestLimits maxAllowedContentLength="1048576000" />
how to resolve?
Sep 17, 2020 11:51 AM|PatriceSc|LINK
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.
Sep 18, 2020 04:42 AM|soumenh|LINK
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,
Sep 18, 2020 08:21 AM|PatriceSc|LINK
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.
Sep 18, 2020 09:54 AM|soumenh|LINK
Working perfectly. Thank you.