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.