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


Form update - file upload - overwriting

Thread began 11/19/2014 5:17 pm by rgolab68503 | Last modified 11/19/2014 6:12 pm by rgolab68503 | 283 views | 2 replies |


Form update - file upload - overwriting

Hey Jason,

Been trying to figure this one out along with a few other issues I was having. Funny thing is that I already have another section on the site working properly but just can't get this section to do what it's supposed to..

Basically I have an upload page with several files. The insert records work now and the files get uploaded to the correct folders. No problem there. The issue is if sya out of the 9 or so files I only need to replace one of them. i chose the file and hit the update button, it then wipes out the names of all the others that were not uploaded again.

I've gone through this tutorial several times ...
But I must be missing something.

On this tutorial it states to point the "default file" in the upload to the value of the hidden field. I've tried it there but I know in a previous issue i was having you mentioned not to put it in the default file bu tin the File. I tried both ways.

I also found this thread stating to look at the validation and choose "Allow Blank" and it points to find the details in the file upload tutorial. I couldn't find this point in any of the upload tutorials.

So basically all I want to happen in the update page that if a new file is needed only that field get updated. The other simply stay the same.

Any ideas?

Sign in to reply to this post

Jason ByrnesWebAssist

for each of the hidden form elements that you add, you need to bind there values to the corresponding field from the WADAadtirepics recordset.

in the file upload behavior, you have bound the File Name setting to the hidden form elements. set the File Name to [FileName]

Bind the Default file setting t the hidden form elements.

Sign in to reply to this post


OK, i had the hidden form element bound to the right place when i completed the tutorial however I never "unbound" the original binding code created by dataassist. ... so is it safe to say that perhaps the validation code in the original field made it fail?

so the original ...
value="<?php echo((isset($_GET["invalid"])?ValidatedField("Tireupdate","Tlogo"):"".$row_WADAadtirepics["Tlogo"]."")); ?>"
---- should simply have been ...
value="<?php echo $row_WADAadtirepics['Tlogo']; ?>"

Not sure if it would be a good idea to change this once section to suggest it or not ...
Step 1: Creating the file field

Use the following instructions for creating this field for your Update page.
1.From the Dreamweaver Files panel, open your Data Bridge Update page.
2.Select the field you want to replace with a file upload field.
3.On your keyboard, press Ctrl (Cmd) T.
This displays the Quick Tag Editor.
4.Change <input type="text"> to <input type="hidden">.
4a. --- Bind the hidden field to the WADA - update recordset corresponding fields. You may have to unbind your hidden field if validations were originally inserted.
5.Place your cursor beside the hidden form field icon.
6.Choose the File field option from Forms category of the Insert bar.

it all works great now Jason.

As always thanks for your help.

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