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

DFP db filename gets overwritten on update

Thread began 11/12/2009 11:46 am by contact318852 | Last modified 1/19/2010 4:33 pm by contact318852 | 5932 views | 36 replies


This is an ongoing problem that needs to be addressed in ASP as well as PHP.

The documentation will work just fine if your form has nothing but a file field on it or if you never wish to replace the file but the logic fails when you want to have full control of the file and record.

Setting Default File Name will address the issue of updating the record without uploading a new image but it forces you to retain the original file name and that is not always desireable.

If the original filename is acceptable to you it will still conflict with a file delete behaviour.

The trigger to delete the original file is "Upload Successful". If I successfully upload an image, rename it to the original file name and update the database the very next step will delete the very file that I just uploaded.

DFP on a DataAssist needs better logic built into it.

If I update a record, without uploading a new image, the imagename field needs to be left intact.
If I upload a new image, the imagename field needs to be set to the ACTUAL new name of the image.
On succcessful Upload I can then delete the original filename.

Some sort of IF THEN ELSE logic should do it but I cannot write it.

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