Results 1 to 7 of 7

Thread: Uploading files using FCKEditor

  1. #1
    Senior Senile Member grandad's Avatar
    Join Date
    Feb 2006
    Location
    Up the Mountains
    Posts
    424
    Post Thanks / Like

    Default Uploading files using FCKEditor

    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...

  2. #2
    Senior Member louie's Avatar
    Join Date
    Jan 2006
    Location
    Dublin, Ireland
    Posts
    2,423
    Post Thanks / Like

    Default

    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

  3. #3
    Senior Senile Member grandad's Avatar
    Join Date
    Feb 2006
    Location
    Up the Mountains
    Posts
    424
    Post Thanks / Like

    Default

    I tried that Louis. Didn't seem to have any effect

  4. #4
    Webmonkey ph3n0m's Avatar
    Join Date
    Jan 2006
    Location
    Ireland
    Posts
    317
    Post Thanks / Like

    Default

    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

  5. #5
    Senior Member louie's Avatar
    Join Date
    Jan 2006
    Location
    Dublin, Ireland
    Posts
    2,423
    Post Thanks / Like

    Default

    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' ;
    make sure they have php as value

    then go to editor->filemanager->upload->php->config.php
    open that file and make sure this line is true:
    Code:
    $Config['Enabled'] = true ;
    and then the others have the right extension:
    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

  6. #6
    Senior Senile Member grandad's Avatar
    Join Date
    Feb 2006
    Location
    Up the Mountains
    Posts
    424
    Post Thanks / Like

    Default

    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.

  7. #7
    Senior Member louie's Avatar
    Join Date
    Jan 2006
    Location
    Dublin, Ireland
    Posts
    2,423
    Post Thanks / Like

    Default

    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

Similar Threads

  1. Delete Or Redirect Files From Server?
    By Peter McC in forum Webmaster Discussion
    Replies: 4
    Last Post: 14-02-2007, 12:32 PM
  2. Importing XML files into MS SQL
    By davidbehan in forum Coding Help
    Replies: 0
    Last Post: 06-02-2007, 05:00 PM
  3. FLV files!??
    By ziycon in forum Coding Help
    Replies: 5
    Last Post: 23-01-2007, 04:59 PM
  4. Need to graph hostorical log files
    By RedCardinal in forum Server / Technical Administration Tips and Queries
    Replies: 3
    Last Post: 11-08-2006, 10:26 AM

Visitors found this page by searching for:

FCKEditor upload pdf

fckeditor file upload

fckeditor upload file

fckeditor upload limit

ckeditor upload file

CKeditor upload pdf

fckeditor upload documentfckeditor pdfupload file fckeditorfckeditor upload pdf filefckeditor documentation pdfupload PDF fckeditorfck editor upload fileckeditor pdf uploadckeditor file uploadupload pdf with fckeditorfckeditor pdf uploadfckeditor document uploadupload pdf in fckeditorupload file ckeditorhow to upload pdf file in fckeditorfckeditor upload pdf filesupload document fckeditorckeditor upload docFCKeditor allow PDF upload

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •