简体   繁体   中英

CKEditor image upload issue

I am having problem with CKEditor, I cannot upload the any images, I am getting this error Invalid file. The file size is too big. Invalid file. The file size is too big. However, I increase the file size;

$config['ResourceType'][] = Array(
        'name' => 'Images',
        'url' => $baseUrl . 'images',
        'directory' => $baseDir . 'images',
        'maxSize' => 4024,
        'allowedExtensions' => 'bmp,gif,jpeg,jpg,png',
        'deniedExtensions' => '');

How can I solve this issue?

maybe you should try to upload images to one folder on server for that user and show a popup which will show all his images user can copy image location and paste in image URL field in CKEditor's image import popup or u can put URL of that image in that field using JavaScript when user selects it. this way images wont need to be uploaded more that once and its easy to handle uploads and no need to mess with CKEditor's code.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM