I have a strange situation that I hope someone can shed some light on.
Using CKFinder to upload files (obviously) and I have limited the file size in the config.ascx to be 2mb, however when I test this with a file of 16mb, the whole file is still uploaded (somehow even passing the file size limits in my web.config...am using the ASP.net version of CKFinder).
What I assume then is that CKFinder must be uploading the file piecemeal? and combining it back at the server. If that assumption is correct, why then does it not stop uploading the file when the file size is met?
If that assumption is not correct here my settings:
web.config :
// length is kb => 1024 * 2 => 2MB
<httpRuntime requestValidationMode="2.0" maxRequestLength="2048" />
// length is in bytes => 8 * 1024 * 1024 * 2 => 2MB
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="2097152"></requestLimits>
</requestFiltering>
</security>
and in the config.ascx file my setting is:
type.MaxSize = 2097152;
So can someone shed some light on what is happening?
Mon, 05/16/2011 - 22:15
#1
Re: Full file is uploaded
In general, CKFinder is unable to detect the size of a file until it is uploaded, so, technically, the whole file is always uploaded.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+