close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Uploading PDF files?

Thread began 3/30/2010 10:58 am by msummers194171 | Last modified 7/03/2013 8:39 pm by Bonnie | 4166 views | 7 replies |

msummers194171

Uploading PDF files?

Using the admin function of Power CMS, I'm trying to edit some text by inserting a link to a PDF file. I select the text, and click on the Insert/Edit Link button. Using the Upload tab, I browse to the PDF file and click on the SEND to SERVER button. I am told that this is not a valid file type (PDF)! How can I do this?

Sign in to reply to this post

msummers194171

I wonder if anyone can upload PDF files this way? Somehow, I doubt it. Yet I've looked at the js for the HTML editor, and it appears that it *should* be possible.

Sign in to reply to this post

Eric Mittman

Where in the config is the pdf file format listed as the allowed for you? I have bee looking into this and I can get the same result that you are getting when I do not have it listed as allowed in my image types.

When I add it to the allowed image types I no longer get the error and can upload and link to the pdf file without issue. Here is what my settings look like for the allowed images inside of the config.php file at HTMLEditor > editor > filemanager > connectors > php:

php:
$Config['AllowedExtensions']['Image']    = array('bmp','gif','jpeg','jpg','png', 'pdf') ;



What is the result that you get if you add it here?

Sign in to reply to this post

msummers194171

Eric:

Thanks! I would never have thought to add it to the IMAGE types configuration. I'll give this a try....

Sign in to reply to this post

Eric Mittman

There may be a more appropriate way of enabling pdf uploading in the fck editor, but this method seems to give me the desired result. Let us know if you have any further questions or run into any problems.

Sign in to reply to this post

msummers194171

Thanks Eric. What is curious and unexpected to me is that there is a similar allowed extensions config variable (in that same config file) for FILES and that one *does* include 'pdf'. In addition, a glance through the js file for the fck editor (fckconfig.js) shows this -

FCKConfig.LinkUploadAllowedExtensions = ".(7z|aiff|asf|avi|bmp|csv|doc|fla|flv|gif|gz|gzip|jpeg|jpg|mid|mov|mp3|mp4|mpc|mpeg|mpg|ods|odt|pdf|png|ppt|pxd|qt|ram|rar|rm|rmi|rmvb|rtf|sdc|sitd|swf|sxc|sxw|tar|tgz|tif|tiff|txt|vsd|wav|wma|wmv|xls|xml|zip)$" ; // empty for all

Note the presence of "pdf" in that list as well. At any rate, your suggestion does seem to work. I suggest that you add a KB entry about this unusual requirement.

Sign in to reply to this post

Eric Mittman

I have noticed that as well, it seems that pdf and some other file types should not need to be added to the allowed images section to function but I'm not able to get them uploaded without doing it like this.

I have suggested this for a write up so that others can benefit from the experiences here in this thread.

Sign in to reply to this post

Bonnie

to upload pdf files successfully , you shall firstly process your pdf files to the standard of the website to which you upload. i can share with you a pdf processor which can rotate , resize, crop pdf files . you can have a try.

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