close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

More than one file manager in a site with different upload path

Thread began 4/27/2011 4:27 pm by ijs174940 | Last modified 4/28/2011 2:35 pm by Jason Byrnes | 1722 views | 8 replies |

ijs174940Beta Tester

More than one file manager in a site with different upload path

Have a small issue with the file manager, I have added more than one to the admin of a site but the first instance I have inserted in the site is showing the upload dir of the second one I inserted. They are on differenet pages.

Sign in to reply to this post

Jason ByrnesWebAssist

In each html editor instance, you can enter a subdirectory of the site settings upload path to have them go to unique folders.

Sign in to reply to this post

ijs174940Beta Tester

strange, i did do that, I will delete it and try it again

Sign in to reply to this post

ijs174940Beta Tester

Ok, tried it again and got the same result so I traced the file that stores the location for the uploads and it appears that there is only one file, webasssit/kfm/configuration.php and within it one var that stores the info "$kfm_userfiles_address" so if this is the case it would make it impossible to add more than one upload field with a different default upload path.

Surely this is not correct?

Sign in to reply to this post

Jason ByrnesWebAssist

When you add the html editor instance to the page, it will add a line similar to:

$CKEditor_config["filebrowserBrowseUrl"] = "webassist/kfm/index.php?uicolor=".urlencode(isset($CKEditor_config["uiColor"])?str_replace("#","#",$CKEditor_config["uiColor"]):"#eee")."&theme=webassist_v2&showsidebar=false&startup_folder=folder1";

the last argument:
&startup_folder=folder1

set the subfolder of the main upload folder that the instance will use, in my example case, I set the upload folder in site settings to use "uploads", this will set the editor to use the uploads/folder1 directory for this instance.

Sign in to reply to this post

ijs174940Beta Tester

But I am not adding the editor to the page only the file manager,

<div class="htmleditor_upload">
<input type="hidden" name="WADA_RepeatID_ID_<?php echo $RepeatSelectionCounter_1; ?>" id="WADA_RepeatID_ID_<?php echo $RepeatSelectionCounter_1; ?>" value="<?php echo $row_rs_typeadmin["ID"]; ?>" />
<input type="text" value="<?php echo $row_rs_typeadmin['IMG']; ?>" id="DT_Image_<?php echo $RepeatSelectionCounter_1; ?>" name="DT_Image_<?php echo $RepeatSelectionCounter_1; ?>" readonly style="float:left;"/>
<div style="float:left;"><img src="../webassist/kfm/themes/webassist_v2/spacer.gif" id="htmleditor_image_<?php echo $RepeatSelectionCounter_1; ?>" align="top" /></div>
<img src="../webassist/kfm/themes/webassist_v2/icon_folder.png" width="20" height="18" id="htmleditor_browse_<?php echo $RepeatSelectionCounter_1; ?>" name="{dds:'../', startup_folder:'', show_sidebar:true, width:600, height:400}" style="vertical-align:bottom; padding-bottom:2px; visibility: hidden;" /> </div>

hence the issue

Sign in to reply to this post

Jason ByrnesWebAssist

in the stand alone file manager, the stratup folder is set in this code:
name="{dds:'../', startup_folder:'', show_sidebar:true, width:600, height:400}"

in your case the startup folder is left blank:
startup_folder:''

Sign in to reply to this post

ijs174940Beta Tester

So I would need to update it in code view after inserting it? as in

name="{dds:'../', startup_folder:'#FOLDER_HERE#', show_sidebar:true, width:600, height:400}"

If so is the path relevent or set from the site root?

Sign in to reply to this post

Jason ByrnesWebAssist

It can be set in the file manager wizard. I just tested it and it was working correctly on my system

it is a sub folder of the main upload setting.

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