close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

adding PDFs

Thread began 1/11/2010 3:42 pm by webdesignerwags | Last modified 1/12/2010 1:33 pm by Eric Mittman | 818 views | 1 replies |

webdesignerwags

adding PDFs

I found the file that needs to be changed in the new version of Power CMS. It is the config.php file located here -
HTMLEditor/editor/filemanager/connectors/php/config.php

Go to approx. line 142 and add , 'pdf' (don't forget to separate with a comma).
$Config['AllowedExtensions']['Image'] = array('bmp','gif','jpeg','jpg','png', 'pdf') ;

Then you can use the Insert/Edit Link icon to upload the PDF. I like to always set Target=Blank and leave the protocol as other. It works absolutely fantastically!

I decided to then try Word, Excel, and Powerpoint. They all work except I can't get the PPT show file to work (ppst). But that's ok. I'm happy with everything else.

What I don't understand is why these files don't upload w/o this fix to the config file. The file extensions are already listed in other lines of code. Could someone please explain that to me? Just curious.

Again - you can check out my testing page.
index.php

thank you,
Laura

Sign in to reply to this post

Eric Mittman

The reason that this works when you edit the allowed images extensions is because the editor is limited to the image type uploads. Adding extensions to the allowed image types will allow you to upload files other than images through the upload interface. For the ppst type of files try adding in just the last three characters of the extension pst.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...