Max file size when uploading to image library
Is there a max file size when uploading to an image library in SF5? I'm trying to upload a 2MB file and it never finishes.
Look all over and can't find an answer.
Hey Jeff,
Under Administration >> Settings >> Advanced >> Libraries check the 'size of a chunk in bytes when upload media data' and also take a look at your web.config's MaxRequestLength.
Still can't get this working. Size of chunk is 81920 and MaxRequestLength is 102400. I tried changing these values but it doesn't make a difference. I also found a post that suggested adding the following to the system.webServer section of the web.config but this didn't work either. The file is only 2MB. I'm using the default database storage provider. It never times out. I've let it sit for over an hour an it just never finishes.
<
security
>
<
requestFiltering
>
<
requestLimits
maxAllowedContentLength
=
"209715200"
/>
</
requestFiltering
>
</
security
>
Anyone else have any ideas?
Hey Jeff,
Just tested it with Sitefinity v5.0.2800 with the following settings in my web.config:
<
system.web
>
<
httpRuntime
maxRequestLength
=
"102400"
requestValidationType
=
"Telerik.Sitefinity.Security.Claims.CustomRequestValidator, Telerik.Sitefinity"
/>
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
librariesConfig
xmlns:config
=
"urn:telerik:sitefinity:configuration"
xmlns:type
=
"urn:telerik:sitefinity:configuration:type"
config:version
=
"5.0.2800.0"
>
</
librariesConfig
>
I'm having similar issues (404 when sending large files ~600MB mp4s) but I'm not sure what it is. On the test environment it works well but in production it fails although the settings are exactly the same.
Any ideas?
Hi Taha Zouhair,
Since the issue does not reproduce when you run the project locally, it seems that the issue might be related to your environment settings.
Can you please try to temporarily comment out the rewrite rules in your web.config file, if any, and test the behavior again?
In addition to this, I would suggest that you make some changes to you web.config file and then test the behavior again.
1. Please configure sendTimeout in your web.config file in the <bindings> section:
<
bindings
>
<
basicHttpBinding
>
<
binding
name
=
"basicHttpBinding"
maxReceivedMessageSize
=
"2147483647"
maxBufferSize
=
"2147483647"
sendTimeout
=
"5:00:00"
>
<
securitymode
=
"None"
/>
</
binding
>
</
basicHttpBinding
>
</
bindings
>
<
system.web
>
<
httpRuntime
maxRequestLength
=
"102400"
maxUrlLength
=
"102400"
maxQueryStringLength
=
"3000000"
requestValidationType
=
"Telerik.Sitefinity.Security.Claims.CustomRequestValidator, Telerik.Sitefinity"
/>
<
system.web
>
<
httpRuntime
executionTimeout
=
"43200"
maxRequestLength
=
"102400"
maxUrlLength
=
"102400"
maxQueryStringLength
=
"3000000"
requestValidationType
=
"Telerik.Sitefinity.Security.Claims.CustomRequestValidator, Telerik.Sitefinity"
/>