change this to:
PHP Code:$Config['AllowedExtensions']['File'] = array('pdf') ;//and add one by one separated by , like 'pdf', 'txt'
I'm building a CMS system for a client at the moment. All is going well, except they want the ability to upload PDF files.
I installed the easyUpload plugin which nicely provides for file uploads, but for some reason the system keeps rejecting PDF files ['file type not allowed' or some such crap].
The configuration is as follows, which should allow all files bar the excepted ones.
Code:$Config['AllowedExtensions']['File'] = array() ; $Config['DeniedExtensions']['File'] = array('html','htm','php','php2','php3','php4','php5','phtml','pwml','inc','asp','aspx','ascx','jsp','cfm','cfc','pl','bat','exe','com','dll','vbs','[replacer_a]
P.S. As you may gather, I'm using the PHP script...
change this to:
PHP Code:$Config['AllowedExtensions']['File'] = array('pdf') ;//and add one by one separated by , like 'pdf', 'txt'
:. Web Design & Development Web Design Ireland
:. Search Engines Optimization Search Engines Optimization
:. Car Parts & Accessories Car Parts
:. Cars Ireland Cars Ireland
:. I Have 2 Find It Directory SEF Directory
I tried that Louis. Didn't seem to have any effect![]()
have you checked for filesize limit allowed on the server?
Information for Unmarried Parents | blog | bash.org
I gotta gotta get away, get away from the human race
I don't know what I'll see, don't even know what I'll find
I don't know what to pack, never been to a trip at the mind
if you are using FKEditor you need to enable the upload feature and what connectors you are using.
First open the fckconfig.js file and find:
make sure they have php as valueCode:var _FileBrowserLanguage = 'php' ; var _QuickUploadLanguage = 'php' ;
then go to editor->filemanager->upload->php->config.php
open that file and make sure this line is true:
and then the others have the right extension:Code:$Config['Enabled'] = true ;
PHP Code:$Config['AllowedExtensions']['File'] = array('pdf') ;
$Config['DeniedExtensions']['File'] = array('php','php2','php3','php4','php5','phtml','pwml','inc','asp','aspx','ascx','jsp','cfm','cfc','pl','bat','exe','com','dll','vbs','js','reg','cgi') ;
$Config['AllowedExtensions']['Image'] = array('jpg','gif','jpeg','png') ;
$Config['DeniedExtensions']['Image'] = array() ;
$Config['AllowedExtensions']['Flash'] = array('swf','fla') ;
$Config['DeniedExtensions']['Flash'] = array() ;
:. Web Design & Development Web Design Ireland
:. Search Engines Optimization Search Engines Optimization
:. Car Parts & Accessories Car Parts
:. Cars Ireland Cars Ireland
:. I Have 2 Find It Directory SEF Directory
Apologies for the delay - had to go out for a while....
This is very strange. According to their documentation, "array() ;" allows all file types. I was able to upload DOC files with no problem using this configuration. I changed it to Louis' example [thanks Louis] and explicitly declared the extensions and it now works!
Brilliant.
Thanks lads.
glad we can help.
:. Web Design & Development Web Design Ireland
:. Search Engines Optimization Search Engines Optimization
:. Car Parts & Accessories Car Parts
:. Cars Ireland Cars Ireland
:. I Have 2 Find It Directory SEF Directory