Irish SEO,  Marketing & Webmaster Discussion

 

Uploading files using FCKEditor

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


Go Back   Irish SEO, Marketing & Webmaster Discussion > Webmaster Help > Webmaster Discussion > CMS and Content Management

Register Forum Rules FAQDonate Members List Calendar Search Today's Posts Mark Forums Read


Notices

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-06-2007, 12:29 PM
grandad's Avatar
Senior Senile Member
 
Join Date: Feb 2006
Location: Up the Mountains
Posts: 401
Nominated 1 Time in 1 Post
TOTW/F/M Award(s): 0
grandad has a spectacular aura about
Send a message via ICQ to grandad
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','js','reg','cgi','htaccess','asis') ;
Has anyone any experience of this?

P.S. As you may gather, I'm using the PHP script...
__________________
Head Rambles
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 01-06-2007, 01:14 PM
louie's Avatar
Senior Member
 
Join Date: Jan 2006
Location: Dublin, Ireland
Posts: 2,048
Nominated 5 Times in 3 Posts
Nominated TOTW/F/M Award(s): 1
louie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enough
Send a message via Yahoo to louie Send a message via Skype™ to louie
Default

change this to:
PHP Code:
$Config['AllowedExtensions']['File']    = array('pdf') ;//and add one by one separated by , like 'pdf', 'txt' 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 01-06-2007, 01:22 PM
grandad's Avatar
Senior Senile Member
 
Join Date: Feb 2006
Location: Up the Mountains
Posts: 401
Nominated 1 Time in 1 Post
TOTW/F/M Award(s): 0
grandad has a spectacular aura about
Send a message via ICQ to grandad
Default

I tried that Louis. Didn't seem to have any effect
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 01-06-2007, 01:53 PM
ph3n0m's Avatar
Webmonkey
Recent Blog: Show and click
 
Join Date: Jan 2006
Location: Ireland
Posts: 300
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
ph3n0m will become famous soon enough
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 01-06-2007, 01:55 PM
louie's Avatar
Senior Member
 
Join Date: Jan 2006
Location: Dublin, Ireland
Posts: 2,048
Nominated 5 Times in 3 Posts
Nominated TOTW/F/M Award(s): 1
louie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enough
Send a message via Yahoo to louie Send a message via Skype™ to louie
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
:. 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 01-06-2007, 05:43 PM
grandad's Avatar
Senior Senile Member
 
Join Date: Feb 2006
Location: Up the Mountains
Posts: 401
Nominated 1 Time in 1 Post
TOTW/F/M Award(s): 0
grandad has a spectacular aura about
Send a message via ICQ to grandad
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7 (permalink)  
Old 01-06-2007, 07:08 PM
louie's Avatar
Senior Member
 
Join Date: Jan 2006
Location: Dublin, Ireland
Posts: 2,048
Nominated 5 Times in 3 Posts
Nominated TOTW/F/M Award(s): 1
louie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enough
Send a message via Yahoo to louie Send a message via Skype™ to louie
Default

glad we can help.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
fckeditor, files, uploading

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads

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


Sponsored links

Paid On Results


All times are GMT +1. The time now is 04:50 AM.


Powered by: vBulletin Version 3.7.3, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
Hosted in Ireland by Blacknight - Test your ISP |Irish Hosting Directory| Armchair.ie|Logo by Eden Web Design|Avatars by Afterglow |Latest Blog Entries | VPS HostingAd Management by RedTyger

Search Engine Friendly URLs by vBSEO 3.2.0