I'm trying to implement CKFinder in with CKEditor. When I try and upload a image via the Upload tab I get the error msg:
Resource type is not valid.
If I choose the Image button > Browser Server > Upload btn I can upload a image fine. I'm sure I'm missing some configuration ...
Here's my CKEditor config.js:
Let me know if I need to post some other code.
Thnx, MS
Resource type is not valid.
If I choose the Image button > Browser Server > Upload btn I can upload a image fine. I'm sure I'm missing some configuration ...
Here's my CKEditor config.js:
config.filebrowserBrowseUrl = '/ckfinder/ckfinder.html'; config.filebrowserImageBrowseUrl = '/ckfinder/ckfinder.html?Type=Images'; config.filebrowserFlashBrowseUrl = '/ckfinder/ckfinder.html?Type=Flash'; config.filebrowserUploadUrl = '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files'; config.filebrowserImageUploadUrl = '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images'; config.filebrowserFlashUploadUrl = 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash';
Let me know if I need to post some other code.
Thnx, MS
Re: Upload tab: resource type not valid msg
please check your setting for $config['ResourceType'] array . It looks like you try upload image that are not allowed or supported. What image (extension) do you try upload ?
Please write info about you browser, OS, CKFinder version , server and php version.
Re: Upload tab: resource type not valid msg
THanks for responding. I'm sure your busy, here's the info, thanks again for looking:
Thanks for your response, I'm sure you are busy.
Here's my config:
I was trying to upload various jpgs (see attached)
OS: Mac OSX 10.6.7
Browser: FF 4.0.1, Chrome 12, Safari 5
CKFinder Ver: 2.0.2
Server OS: MacOSx (MAMP)
PHP: 5.2.6
Re: Upload tab: resource type not valid msg
Re: Upload tab: resource type not valid msg
Config.zip
SmallPicture.zip
Attachments:
Re: Upload tab: resource type not valid msg
Please refer to sample file ckfinder/_samples/ckeditor.html. Check your config with this sample and check there how to integrate CKEditor with CKFinder.
Please treat this file as reference to further steps.
Re: Upload tab: resource type not valid msg
Thanks again, I ended up moving ckeditor into /ckeditor/ and was able to get everything working.
One thought is that the error message is misleading towards troubleshooting the error ... any thoughts as to why it was kicking that error msg out?
Re: Upload tab: resource type not valid msg
I think that it is a standard error message in case of some problems. I am glad that you resolved your issue.
Re: Upload tab: resource type not valid msg
It was the 'name' in the ResourceType. I had changed it from 'Files" to "PDFs". This worked ok in the browse feature, but for some reason in the Upload mode, it kept causing "Resource type is not valid." to appear. So I changed it back to 'Files' and now it works.
$config['ResourceType'][] = Array(
'name' => 'Files', // Single quotes not allowed
'url' => $baseUrl . 'pdfs',
'directory' => $baseDir . 'pdfs',
'maxSize' => 0,
Re: Upload tab: resource type not valid msg
All you need to do is to remember to point CKEditor to the right place once you make such a change (I assume you had problems when running CKFinder together with CKEditor).
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+