close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Updating an image and retaining the filename

Thread began 10/25/2012 7:15 am by GeoffBeale | Last modified 10/29/2012 7:39 am by Jason Byrnes | 1355 views | 7 replies |

GeoffBeale

Updating an image and retaining the filename

I am using DFP with DataBridge. Each record has one image, when the record is updated and a new image selected, I want the new image to have the same name as the old image.
I have tried various things but can't understand exactly how to do this, I'd be very grateful for some assistance.

Sign in to reply to this post

Jason ByrnesWebAssist

in the Digital File Pro server behavior, click the Lightning bolt next to the File Name setting and select the Image column from your recordset from the dynamic bindings.

you'll need to double check that the Recordset code comes before the upload file code in your page for this to work.

Sign in to reply to this post

GeoffBeale

Thanks very much for your reply, I've given that a try and it results in the new file being renamed filename.jpg.jpg that is the extension .jpg is added again to the original filename.
I added code to strip off the extension of the filename from the recordset before passing but this results in the filename now being set to just ".jpg" ie extension only filename lost.

I also get:
"It appears that one of your server-side values is improperly coded. Please check this interface for inconsistencies." when I try to look at the DFP server behavior.

What am I doing wrong?

Sign in to reply to this post

Jason ByrnesWebAssist

send a copy of the page please.

Sign in to reply to this post

GeoffBeale

Many thanks be grateful if you'd take a look, page attached

Attached Files
card_update.zip
Sign in to reply to this post

Jason ByrnesWebAssist

try changing:

php:
'FileName' => "". basename($row_WADAcard_crd['image_crd'],'.jpg') ."",



to:

php:
'FileName' => "".(str_replace(".jpg","",$row_WADAcard_crd['image_crd']))  ."",
Sign in to reply to this post

GeoffBeale

Thanks for that, I've tried it and the problem now is that the actual image is not replaced with the new one. The filename stays the same. Presumably DataBridge believes the image hasn't been changed, hope there's a simple solution to this!

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