0

I installed CKFinder & CKEditor. They work well, and I uploaded the images. But I must give users the ability to upload pdf-s. When I try to do it through the image button uploading form, it says: "Invalid file extension.".

In /ckfinder/config.php I found this code:

$config['ResourceType'][] = Array(
        'name' => 'Files',              // Single quotes not allowed
        'url' => $baseUrl . 'files',
        'directory' => $baseDir . 'files',
        'maxSize' => 0,
        'allowedExtensions' => '7z,aiff,asf,avi,bmp,csv,doc,docx,fla,flv,gif,gz,gzip,jpeg,jpg,mid,mov,mp3,mp4,mpc,mpeg,mpg,ods,odt,pdf,png,ppt,pptx,pxd,qt,ram,rar,rm,rmi,rmvb,rtf,sdc,sitd,swf,sxc,sxw,tar,tgz,tif,tiff,txt,vsd,wav,wma,wmv,xls,xlsx,zip',
        'deniedExtensions' => '');

I created the files dir under $baseDir, but it still doesn't work. What to do?

1 Answer 1

1

To upload a PDF or another arbitrary file, go through the generic Link dialog:

enter image description here

Then use the upload form:

enter image description here

1
  • I was struggeling to upload mp3 file via KCFinder, I had to use 'link upload' but forgot to remember 'Simpley Sweet' solutions infront of my eys. Thanks!!
    – Nono
    Commented Aug 28, 2018 at 16:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.