close ad
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


Capture the renamed filename of a duplicate thumnail image on upload

Thread began 8/22/2014 1:38 am by jon392819 | Last modified 8/22/2014 6:17 am by Jason Byrnes | 697 views | 1 replies |


Capture the renamed filename of a duplicate thumnail image on upload

Hi Guys, I am using ### $filenamelink = $WA_DFP_UploadStatus["WA_UploadResult1"]["serverFileName"]; ### to capture the name of an uploaded image. I am using $filenamelink in both insert and update queries.

Works fine perfect.

If I add the option to create a thumbnail image, how would I get the file name of the thumbnail assuming I have told the code to add "_small" to it and the image encounters a duplicate so my image that goes up as "test.jpg" would actually be on the server as "test_1_small.jpg"

Is it possible to capture the renamed file name for the thumbnail so I can update a database record at the same time with this name along with the larger version which I have working fine at the minute?

I have attached my code.

As updating the image is optional for the user you will see I have a simple if statement to handle this. Its just catching the renamed file name that I am stuck on.

Many thanks


Attached Files
Sign in to reply to this post

Jason ByrnesWebAssist

open the bindings panel and expand the WA Uploaded Files (filefield Name) binding group.

you will notice that there a server file name biding for each iteration of the image that is created.

use the server file name binding for the thumbnail to return it's name.

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