close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Problem updating database for image upload with 2 sizes

Thread began 10/11/2011 2:49 pm by paulshoe379536 | Last modified 10/12/2011 2:50 pm by Jason Byrnes | 1202 views | 3 replies |

paulshoe379536

Problem updating database for image upload with 2 sizes

I am having a problem updating my database with the file name of the second version (mini) of an uploaded image file. On the update page, if I select a new image for upload the two versions are uploaded correctly and the two database fields are updated correctly.

However, when I update the record without uploading a new image the database is updated correctly except the field for my 2nd version ("mini") of the image is blanked. How do I keep the field for my "mini" version from ending up blank when there is no image uploaded?

Sign in to reply to this post

Jason ByrnesWebAssist

for both versions of the image, you need to have a hidden form element on the page.

set the initial value of the first hidden form element to use the large image column value from your recordset.

set the second hidden element to use the mini image column value from your recprdset.

In the upload file behavior, select the large image, set the default file name to use the first hidden form element.

select the mini image, and set the default file name to use the second hidden form element.

Sign in to reply to this post

paulshoe379536

That was what I thought I had done. I went back and reselected the hidden file for the second image and still no luck. This time, for the sake of time, I am going to use a concatenated name for the second file and not store the name in the database. I wanted to allow for renaming files, but it will have to wait 'til next time.

Thank you for your help Jason

Sign in to reply to this post

Jason ByrnesWebAssist

if you continue to have problems, send a copy of your page so I can see the code.

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