close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Upload and Linking to files PowerCMS 2.1.1

Thread began 3/06/2011 1:55 pm by paulshoe379536 | Last modified 4/12/2011 12:56 pm by Jason Byrnes | 2642 views | 5 replies |

paulshoe379536

Upload and Linking to files PowerCMS 2.1.1

I am having a problem linking to files using the ckeditor. I am hosting the website using a sub-directory in my primary hosting account. The sub-directory is "/_domains/kathleensmiithphotography".

Uploads seem to be working fine, but the when I select a file using "Browse Server" it always adds "/_domains/kathleensmithphotography" to the beginning of my path. This path goes back to the root of my main hosting account and the path that is created ("/_domains/kathleensmithphotography/pageAdmin/files/1.jpg") does not work. If I edit the path to its relative form, "/pageAdmin/files/1.jpg" the image will display properly.

How do I prevent the editor from always adding this path prefix?

Another question about uploads:
How do I control the file types that are allowed for an upload?

Sign in to reply to this post

Jason ByrnesWebAssist

here is an updated cop of the webassist/framework/library.php page that should correct the problem.




to control the allowed file types for uplaod, edit the webassist/kfm/initialize.php file.

the following line can be used to add banned extensions:
$kfm->defaultSetting('banned_upload_extensions',array());


for example, ban png and PDF files:
$kfm->defaultSetting('banned_upload_extensions',array('png','pdf'));

Attached Files
library.php.zip
Sign in to reply to this post

paulshoe379536

The 'banned_upload_extensions' array was exactly what I was looking for and worked great, thank you.

The link address when I select an item using "Browse Server", however, is still the same. I have attached a screen capture with the extra path highlighted. The upload folder relative to the website root is "pageAdmin/files". "pageAdmin" is the powerCMS folder. When I truncate the path in the ckeditor to "/pageAdmin/files/1.jpg" it works fine.

Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

Sign in to reply to this post

amandacomer368110

Path issue PowerCMS

Was there a fix for this problem. I'm having the same issue. File uploads are trying to point to the root of the server instead of the root of my site.

I have 2 sites that I'm working on that have this issue. Different hosting providers, but both shared accounts.

Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

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