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

rating

Update admin page is deleting database records

Thread began 8/12/2019 4:43 pm by tmcbinc99963 | Last modified 8/14/2019 12:58 pm by Ray Borduin | 29 views | 6 replies |

tmcbinc99963

Update admin page is deleting database records

My update page has four file uploads (testimonial, image, TDS and SDS). Their file names are also added to a product database (prod).

When I upload only one file (doesn't matter which one), the file names in the database are deleted for all those file uploads that aren't used. The new files still exist on the server.

I thought it was because the File Upload Server Behaviors were set to overwrite, but can't get any of the other options to work either.

Sign in to reply to this post

Ray BorduinWebAssist

Update your server behaviors for the file upload. Where it says "default file" choose the recordset and column where the current value is. When no file is uploaded, it uses the Default file value. If you set it to the existing value, then it will persist when no new file is uploaded.

Sign in to reply to this post

tmcbinc99963

With the correction, the SDS and TDS file uploads are good when a new image file is uploaded. However, when either a TDS or SDS are uploaded, the image file name is still deleted.

Sign in to reply to this post

Ray BorduinWebAssist

Please attach the current page you are working on so I can take a look at what might be wrong.

Sign in to reply to this post

tmcbinc99963

Attached.

Sign in to reply to this post

Ray BorduinWebAssist

Your update server behavior for the image is set to:

$WA_DFP_UploadStatus["WA_UploadResult1"]["WA_UploadResult1_1"]["serverSimpleFileName"]

it should be:

$WA_DFP_UploadStatus["WA_UploadResult1"]["WA_UploadResult1_1"]["serverFileName"]

Sign in to reply to this post

tmcbinc99963

The file uploads are working correctly now. Thanks Ray

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

Content

rating

Layout

rating

Ease of use

rating

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