Hi,
upload with image is working correcty, but when i want to upload files (pdf, doc,...) i get a message error reporting an invalid extension.
i checked the config.php, but it seems correct. in fact, i didn't make any change on the following code :
Does somebody have an idea ? thanks for your help !
upload with image is working correcty, but when i want to upload files (pdf, doc,...) i get a message error reporting an invalid extension.
i checked the config.php, but it seems correct. in fact, i didn't make any change on the following code :
$config['DefaultResourceTypes'] = ''; $config['ResourceType'][] = Array( 'name' => 'Files', // Single quotes not allowed 'url' => $baseUrl . 'files', 'directory' => $baseDir . 'files', 'maxSize' => 0, 'allowedExtensions' => 'aiff,asf,avi,bmp,csv,doc,fla,flv,gif,gz,gzip,jpeg,jpg,mid,mov,mp3,mp4,mpc,mpeg,mpg,ods,odt,pdf,png,ppt,pxd,qt,ram,rar,rm,rmi,rmvb,rtf,sdc,sitd,swf,sxc,sxw,tar,tgz,tif,tiff,txt,vsd,wav,wma,wmv,xls,zip', 'deniedExtensions' => ''); $config['ResourceType'][] = Array( 'name' => 'Images', 'url' => $baseUrl . 'images', 'directory' => $baseDir . 'images', 'maxSize' => 0, 'allowedExtensions' => 'bmp,gif,jpeg,jpg,png', 'deniedExtensions' => ''); $config['ResourceType'][] = Array( 'name' => 'Flash', 'url' => $baseUrl . 'flash', 'directory' => $baseDir . 'flash', 'maxSize' => 0, 'allowedExtensions' => 'swf,flv', 'deniedExtensions' => '');
Does somebody have an idea ? thanks for your help !
Re: invalid extensions on file upload (pdf,...)
Is anybody here can help us? It's too urgently fot me
Thanks
Re: invalid extensions on file upload (pdf,...)
If for some reason you want to upload different files there, you need to proper change your settings, including the extensions you're willing to have there.
Frederico Knabben
CKEditor Project Lead and CKSource Owner
--
Follow us on: Twitter | Facebook | Google+ | LinkedIn
Re: invalid extensions on file upload (pdf,...)
It works!
The problem in my case was at server settings. I tried to increase the max allowed file size from .htaccess and with php.ini but I don't know why it wasn`t succeed. I'vo wrote to my hosting company and they put php.ini file in my root folder