I have a problem with upload files in ckeditor+ckfinder. Permissions are ok (777), in config.js I have default variables, save_mode is off what is wrong? I have a error:
"Invalid file. File is to big"
I spent 2 days and night on this problem. Please help me. I have Gentoo Linux, Apacje + PHP5, ckeditor+ckfinder (initalization):
"Invalid file. File is to big"
I spent 2 days and night on this problem. Please help me. I have Gentoo Linux, Apacje + PHP5, ckeditor+ckfinder (initalization):
<script type="text/javascript">
if (CKEDITOR.instances['text']) {
CKEDITOR.remove(CKEDITOR.instances['text']);
}
CKEDITOR.config.height = 300;
CKEDITOR.config.width = "98%"
var editor = CKEDITOR.replace('text');
CKFinder.SetupCKEditor( editor, '/libs/ckfinder/' );
</script>

Re: "Invalid file. File is to big"
Please check maxSize values in config.php.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: "Invalid file. File is to big"
Directory /file/ have 0777 rights, i can create new subdirectorys from CKFInder, but I can't upload files. And I have "gd" extension. (See attachment images). My config.php:
config.php:
function CheckAuthentication() { return true; } $config['LicenseName'] = ''; $config['LicenseKey'] = ''; $baseUrl = '/files/'; $baseDir = resolveUrl($baseUrl); $config['Thumbnails'] = Array( 'url' => $baseUrl . '_thumbs', 'directory' => $baseDir . '_thumbs', 'enabled' => true, 'directAccess' => false, 'maxWidth' => 100, 'maxHeight' => 100, 'bmpSupported' => false, 'quality' => 80); $config['Images'] = Array( 'maxWidth' => 1600, 'maxHeight' => 1200, 'quality' => 80, 'maxSize' => "20M"); $config['RoleSessionVar'] = 'CKFinder_UserRole'; $config['AccessControl'][] = Array( 'role' => '*', 'resourceType' => '*', 'folder' => '/', 'folderView' => true, 'folderCreate' => true, 'folderRename' => true, 'folderDelete' => true, 'fileView' => true, 'fileUpload' => true, 'fileRename' => true, 'fileDelete' => true); $config['DefaultResourceTypes'] = ''; $config['ResourceType'][] = Array( 'name' => 'Files', 'url' => $baseUrl . 'files', 'directory' => $baseDir . 'files', 'maxSize' => "20M", 'allowedExtensions' => 'doc,fla,flv,jpeg,jpg,mp3,odt,pdf,png,tgz,txt,xls,zip', 'deniedExtensions' => ''); $config['ResourceType'][] = Array( 'name' => 'Images', 'url' => $baseUrl . 'images', 'directory' => $baseDir . 'images', 'maxSize' => "20M", 'allowedExtensions' => 'bmp,gif,jpeg,jpg,png', 'deniedExtensions' => ''); $config['ResourceType'][] = Array( 'name' => 'Flash', 'url' => $baseUrl . 'flash', 'directory' => $baseDir . 'flash', 'maxSize' => "20M", 'allowedExtensions' => 'swf,flv', 'deniedExtensions' => ''); $config['CheckDoubleExtension'] = true; $config['FilesystemEncoding'] = 'UTF-8'; $config['SecureImageUploads'] = true; $config['CheckSizeAfterScaling'] = true; $config['HtmlExtensions'] = array('html', 'htm', 'xml', 'js'); $config['HideFolders'] = Array(".svn", "CVS"); $config['HideFiles'] = Array(".*"); $config['ChmodFiles'] = 0777 ; $config['ChmodFolders'] = 0755 ;Wiktor, please help. Please check attached images:
I have enabled "GD" extension and disabled "safe_mode":
but I steel haven't upload files, images and other.
Wiktor, please help ! Please.
D.
Attachments:
Re: "Invalid file. File is to big"
If you have just disabled safe_mode and are still using folders created previously by CKFinder (when safe_mode was enabled), then they still have invalid owner.
Try removing all folders that were created earlier by CKFinder (files/files, files/images, files/flash, files/_thumbs) using FTP and launch CKFinder again to see if that helped.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: "Invalid file. File is to big"
Darek.
Attachments:
Re: "Invalid file. File is to big"
Re: "Invalid file. File is to big"
error_reporting(E_ALL); ini_set('display_errors',1);Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: "Invalid file. File is to big"
Turned out that upload_max_filesize in phpinfo() was 2M.
Re: "Invalid file. File is to big"
upload_max_filesize: 50MB
I steel have a problem. Wiktor, why?
Re: "Invalid file. File is to big"
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: "Invalid file. File is to big"
Problem exist.
Re: "Invalid file. File is to big"
If yes, then check the following:
- max_execution_time
- memory_limit
...and server logs.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+