This is a discussion on Uploading files using FCKEditor within the CMS and Content Management forums, part of the Webmaster Discussion category; I'm building a CMS system for a client at the moment. All is going well, except they want the ability ...
| |||||||
| Register | Forum Rules | FAQ | Donate | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||||
| 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','js','reg','cgi','htaccess','asis') ;
P.S. As you may gather, I'm using the PHP script... |
| |||||
| change this to: PHP Code: |
| |||||
| 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: Code: 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: Code: $Config['Enabled'] = true ; PHP Code:
__________________ :. Web Design & Development Web Design Ireland :. Search Engines Optimization Search Engines Optimization :. Directory Submission Directory Submission :. News & Press Release Ireland GiveItSocks.com :. Used Cars Ireland, Car Parts & Car Audio Cars For Sale, Car Parts & Accessories :. 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. |
| Tags |
| fckeditor, files, uploading |
| Thread Tools | |
| Display Modes | |
|
|
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Delete Or Redirect Files From Server? | Peter McC | Webmaster Discussion | 4 | 14-02-2007 01:32 PM |
| Importing XML files into MS SQL | davidbehan | Coding Help | 0 | 06-02-2007 06:00 PM |
| FLV files!?? | ziycon | Coding Help | 5 | 23-01-2007 05:59 PM |
| Need to graph hostorical log files | RedCardinal | Server / Technical Administration Tips and Queries | 3 | 11-08-2006 10:26 AM |
| ||||||||
| | ![]() | |||||||