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

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