close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Update record overwrites existing file previously uploaded

Thread began 1/03/2011 5:21 pm by lewis327930 | Last modified 1/05/2011 10:01 am by Jason Byrnes | 1413 views | 3 replies |

lewis327930

Update record overwrites existing file previously uploaded

I'm trying to follow the extremely out-of-date tutorial about making this pitiful upload file function work. I need an up-to-date answer really quick about this (with details on how to maneuver through all the work-arounds).

When I upload an image from my insert form - all is well. When I update that record, of course the file is overwritten in the database.

I have created the "hidden" field that has the database column name (photo) bound to it. Then, as the tutorial describes, I add a new "file field" and give it an ID (newphoto). The big problem here is that when moving on the Update Record Server Behavior work-around, the "newphoto" file field doesn't appear for me to select so I can change its property to "Server File Name".

HELP.

Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

Sign in to reply to this post

lewis327930

Sorted out - kind of

I managed to get it working. It is a bit confusing and still don't understand how it works. I am able to add the hidden field and create a new file field that has a different id. The confusion arises from the fact that that id doesn't bind or have a real column association in the data. I can tell you that part of the confusion comes from migrating from Adobe Developer Tools/InterAkt. I see other users who are in the same boat, and some of the concepts are different. That said, I don't see why, for instance, you can't specifiy a field as a file field in the Data Assist wizard. And the hidden/file field combo required to keep the updates from going awry could be built-in to the functionality without the numerous work arounds. Sure you guys are tired of being compared to Developer Tools, but honestly, I could fly through production with that framework. Webassist requires too many modules, wizards, work arounds, fixes, version updates, etc. to be really efficient.

For what it's worth. Thanks for your help.

Sign in to reply to this post

Jason ByrnesWebAssist

in the File Upload server behavior, you bind the default file name to the hidden form element.

When the form is posted, File Upload Creates a variable called Server File Name

If a File is uploaded, the server File Name variable is set to the name of the file that was created on the server.

If no file is uploaded, the server file name variable is given the value of the Default File name setting. Where the default file name is bound to the hidden form element, it gets that value, which should be the file name already stored in the database.

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