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


Losing 2nd filename on page update

Thread began 3/02/2010 3:46 pm by paul386190 | Last modified 3/03/2010 5:39 am by paul386190 | 621 views | 2 replies |


Losing 2nd filename on page update

Hi there, I'm having an issue with my update page.

Essentially, I have a file field called 'brief_pic_1' with a DFP upload feature applied in my original DataAssist Insert Record page that generates two copies from a single image upload - a thumbnail first and then a full size. In my database I am recording a pre-configured filename for both images in separate fields - 'brief_pic_1_thumb' and 'brief_pic_1_full'. This is all working fine - it creates both the images, saves them in the correct folder and inserts each filename into it's correct database field.

Now on the Update Record page, the issue I'm having is that if you update anything else on the page, but not the image, it retains the filename that was inserted into 'brief_pic_1_thumb' but removes the filename that was inserted into 'brief_pic_1_full'. It doesn't delete the actual files from their folder.

The file field on the update page has been renamed to 'updatebriefpic1' and I have inserted two hidden fields, with different names, which hold the current filenames stored in the database. These current filenames are then used as the DEFAULT file in the WA Upload Files (updatebriefpic1) behavior.

In the Update Record Behavior for the whole page, I have bound the two database columns to the appropriate elements in the WA Upload Files (updatebriefpic1) area, so column 'brief_pic_1_thumb' has the value of...
<?php echo $WA_DFP_UploadStatus["WA_UploadResult1"]["WA_UploadResult1_1"]["serverFileName"]; ?>
and column 'brief_pic_1_full' has the value of...
<?php echo $WA_DFP_UploadStatus["WA_UploadResult1"]["WA_UploadResult1_2"]["serverFileName"]; ?>

I have tried changing these values instead to the ones currently stored in the database but still to no avail.

I would be grateful for any assistance.
Kind regards

Sign in to reply to this post


Hi Paul,

Could you post/attach your page so I or others could view the code. There may be an issue where the original file name is not getting populated correctly from the recordset (which is my best guess at this point). I could take a look at the code and let you know what I see.



Sign in to reply to this post



Hi Brian, many thanks for the message and the hint.

I've looked into the code again and you are correct, it hadn't retained the 'Default File Name' entered in the 'WA UploadResult (updatebriefpic1)' for the 'brief_pic_1_full' image. It looks like it is the recurring issue of not hitting the return key before pressing 'FINISH' in the pop up window. I've tried again, remembering to hit the return key, and this time it has worked perfectly.

Thank you again.
Kind regards

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