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


image file location incorrect on image update

Thread began 7/15/2012 11:38 am by asarcona308398 | Last modified 7/16/2012 10:48 am by Jason Byrnes | 732 views | 1 replies |


image file location incorrect on image update

I'm having a problem with an update of a database record that uses an image,
I followed the direction of using a hidden file field in the update page, and using that file field in the upload file server behavior and it does work

---> Only it is also including the folder I specified as the save to folder in the original file upload --> ../images/staff a second time on the update

So in reality I'm getting ../images/staff../images/staff/bear.jpg in the database column after the update.

the image is also being resized, I don't know if this is having an effect on the file directory

I've included the offending file!

Attached Files
Sign in to reply to this post

Jason ByrnesWebAssist

the problem is happening because you are storing the location along with the image name, instead of just storing the file name.

You should not store the location in the database, only the file name.

the location reference will change on a page by page basis. so you should specify the location on the page where you display the image using the image tag, rather than store the location in the database.

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





Ease of use


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