close ad
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


Replace Existing File during Update

Thread began 7/27/2011 11:29 am by codamedia | Last modified 12/23/2011 7:40 am by steelace396915 | 1692 views | 2 replies |


Replace Existing File during Update

I have DataAssist setup with File Uploads on Insert and Update. Everything is working fine in that regard. I have my uploads set to "Replace" a file if that file name already exists, and this is working as expected.

But, during an update is there any way to remove the old file when the name is different so it no longer consumes space?


1: I upload file "AAA.jpg" as my default profile image. The file uploads, and the name is stored in the DB field.
2: During an update, I upload image "BBB.jpg" to change my profile image. BBB.jpg is uploaded, and the new filename is replacing the old filename name in the DB field. So far - so good as the database references the correct image.

The problem is - Now I am left with both "AAA.jpg" and "BBB.jpg" on the server. The database only references "BBB.jpg" so "AAA.jpg" is doing nothing but taking up space.

Sign in to reply to this post



I found the way to do this by using the delete file field, and setting the trigger to "upload filename_here successful" then providing the appropriate key bindings.

All is good!

Sign in to reply to this post


Great! Ive banged my head trying to do this! Not for too long though! ;=)

Martin J.

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