close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Upload path potential problem

Thread began 3/10/2010 5:00 am by web_assist_mail157665 | Last modified 3/26/2010 11:23 am by Ray Borduin | 3333 views | 15 replies |

web_assist_mail157665

Upload path potential problem

I've set the global upload (Wizard) file path to

/userfiles/ (actually I just need userfiles/)

the path to my images are being entered into the database html (in the form)

src="/~MyUserName/SiteName/userfiles/image/ImageName.jpg"

it needs to be

src="userfiles/image/ImageName.jpg" ie as per the Wizard!

Otherwise when I upload the database - all the images are going to have invalid links?
The same problem will occur if I take the database sql from the server to work on it locally.

The current setup is not transportable?
Pls advise


PS - on a positive note - the file manager is a big improvement

Sign in to reply to this post

web_assist_mail157665

Sorry to push - really need an answer on this one
I can't edit any images/files on my current site locally and have all the file paths wrong in the database when its uploaded

Sign in to reply to this post

Dani Chankhour

The paths are written by HTMLEditor using site relative. so if the root of your site is under the "SiteName" folder, then the url is correct, and it should not add the "/~MyUserName/SiteName" to the beginning. Can you give me some information on how to reproduce the issue on my end? If i'm able to reproduce the issue, i can assist you in getting the issue resolved.

Also, please tell me if you are on a mac or pc and the version of DW, and if you are using the Advanced Image Upload?

Thanks.

Sign in to reply to this post

web_assist_mail157665

Originally Said By: Dani Chankhour
  The paths are written by HTMLEditor using site relative. so if the root of your site is under the "SiteName" folder, then the url is correct, and it should not add the "/~MyUserName/SiteName" to the beginning. Can you give me some information on how to reproduce the issue on my end? If i'm able to reproduce the issue, i can assist you in getting the issue resolved.

Also, please tell me if you are on a mac or pc and the version of DW, and if you are using the Advanced Image Upload?

Thanks.  



Local development on a PPC Mac 10.4.11
PHP MYSQL
DW CS4
Upload - using HTML Editor file manager

As you know - sites (by default) are are stored in the user folder 'Sites' - hence the prefix
and thats where I've always had them
a typical path locally being
index.php?



Looking in the HTML Config it is set up as

$WA_EditorLocalRoot = '/~UserName/SiteName/';
$WA_EditorRemoteRoot = '/~UserName/SiteName/';

obviously substituted UserName and SiteName

Each text article is editied with HTML Editor
and images in the text are uploaded via HTML editors filemanager
That article text (including links) is written to the database


more

my main file folder is 'userfiles'
my images are in that folder, in another folder called 'image'

the index.php file is in the Mac Site folder


index.php
>userfiles>image>imageappearinginindex

an image appearing on the index page should have src="userfiles/image/imagename.ext"


the html editor(s) are being called from a php file in a sub folder CMS

>cms>form_edit_article.php



From what I have experienced I cannot believe that HTML editor was ever even tested on a standard mac web setup
if the code goes looking for the apache root folder and inserts that into all the image filepaths

(another annoyance - after picking the default upload folder as 'userfiles' it is displayed in the filemanger as 'root'?? - root seems to be misunderstood and misued all round)
Yes the true root is the apache server - but that's completely useless to include that in the image filenames!

And just to finish things off...I change the upload default directory from /userfiles/ to userfiles/ - and all the editors stop working - no database text - no upload
The upload directory should have nothing to do with the managers interface!
So I go to EDIT the interface and the wizard gives me a javascript error and refuses to open

Now I'm totally screwed

3 days down - still not able to put images onto site.

My client is going ape sh*t



....editors back

no change on path problem

Sign in to reply to this post

web_assist_mail157665

I really need this resolved soon please.

Hi Guys- it's just turned 9:00 pm here

I really need to sort this out before 11pm

Sign in to reply to this post

Dani Chankhour

I have opened a support ticket to further assist you with this issue:

supporthistory.php

Sign in to reply to this post

web_assist_mail157665

Thanks Dani

Its on the server - you have details of ftp in support ticket

Its getting late

getting on for 1 in the morning
going to call it a night

I need to know

1) can you get the editor to show images
2) and get the editor to insert images with filepath

src="userfiles/image/....etc)


ie what you expected it to do the moment it was installed?


there is obviously something fundamentally wrong with the way the file paths are worked out


tia

Sign in to reply to this post

Dani Chankhour

Thanks.

I just responded to your support ticket. I just want to clarify that the HTMLEditor was fully tested on MAC. And the url that you are getting are the correct url and they should work with your default mac set up. and when you upload to your remote server, you can change the $WA_EditorRemoteRoot = '/~UserName/SiteName/'; setting to match your remote server.

Sign in to reply to this post

web_assist_mail157665

This is WRONG WRONG WRONG!

If you have a wizard which sets the upload folder the user SHOULD NOT BE EDITING CODE!!!!

This application doesn't work and needs fixing.

If I set a RELATIVE folder as usefiles/

in a wizard - then thats the RELATIVE folder - be it on a server locally or remote or where ever.

If the database gets a fixed path from the root of the server locally (you must realize that a local mac server puts the Users name in the file path from the apache root!) for every image - then the database entry is USELESS when uploaded.

Site relative us USELESS and is not transportable.

How you can think this is working correctly is beyond me!


BTW - Even IF you MANUALLY CHANGE THE CODE on the server
the images still DO NOT APPEAR IN THE HTML EDITOR WINDOW
The (unknown image) may get the right path from the third party filemanger - but you cant see what images are on the page

This application is flawed - please prove me wrong

Sign in to reply to this post

web_assist_mail157665

It all seems to have gone quiet since last week. No response from tech!

I'm still stuck here with image and file names going into the database with the whole server address on them.

If I change the config files to clip them off - fck editor just shows placeholder ?

Running out of time - please take a look at this issue.

Sign in to reply to this post
loading

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