close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

file manager, update status but not image/file

Thread began 11/12/2013 1:41 pm by Nutzo247 | Last modified 10/15/2014 11:55 am by Jason Byrnes | 1032 views | 6 replies |

Nutzo247

file manager, update status but not image/file

I've got a product update page with a tick box to make the product visible on the website also I have a image uploaded on the same page. Changing the image and updating the status works fine, but just updating the status alone, results in losing the image. I think the database name of the file is being overwritten, it there a way getting around this?

Sign in to reply to this post

Jason ByrnesWebAssist

add a hidden form field.

for the initial value of the hidden field, use the image column from the recordset on the update page.

in the file upload server behavior, bind the Default File setting to the hidden element.

Sign in to reply to this post

Nutzo247

Thanks that did the job.

Sign in to reply to this post

nickj

Yes but on the update page I may want to change the file! Shouldn't the file manager offer to use the initial file name in the recordset?

Sign in to reply to this post

Jason ByrnesWebAssist

a file field cannot have a default value.

that is why you use the hidden field, bind it to the column from the recordset and in the Upload file behavior, bind the default file setting to the hidden field.

Sign in to reply to this post

nickj

On the update page, I have a file field with file manager where I just discovered I could edit properties and add an initial value thus giving me the opportunity to change the uploaded file associated with this record.

See Attachment

Sign in to reply to this post

Jason ByrnesWebAssist

The OP in this thread was not using a file Manager, they where using a standard File form Field and the upload file behavior.


In the File manager, you can set the initial value, but not when using a file field with file upload.

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