I want to upload large files (1GB) with ckfinder.
But I'm unable to upload files larger than 32MB.
The ckfinder error message is (something like): "Invalid file. File size too large."
I get this message immediately after starting the upload.
I don't see an error message in the apache / php error log.
That's what I have configured:
PHP (php.ini):
CKFinder 2.1.1 (config.php):
Questions:
- Do I miss something ?
- Has someone a working configuration for large file uploads ?
Regards Klaus
But I'm unable to upload files larger than 32MB.
The ckfinder error message is (something like): "Invalid file. File size too large."
I get this message immediately after starting the upload.
I don't see an error message in the apache / php error log.
That's what I have configured:
PHP (php.ini):
max_execution_time = 30 max_input_time = 60 memory_limit = 32M post_max_size = 2000M file_uploads = On upload_max_filesize = 2000M
CKFinder 2.1.1 (config.php):
$config['ResourceType'][] = Array( 'name' => 'Files', // Single quotes not allowed 'url' => $baseUrl . 'files', 'directory' => $baseDir . 'files', 'maxSize' => "2000M", 'allowedExtensions' => 'exe,7z,aiff,asf,avi,zip', 'deniedExtensions' => '');
Questions:
- Do I miss something ?
- Has someone a working configuration for large file uploads ?
Regards Klaus
Re: Upload of large files (1GB)
Also post_max_size should be larger than upload_max_filesize.
Re: Upload of large files (1GB)
I have changed the php.ini parameters:
After the changes I was able to upload files with a size of 1 GB.
More testing and tuning is required - "memory_limit" is probably a "dangerous" parameter.
Thanks to Karin.
Regards Klaus