close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

data or image upload ... but not both

Thread began 1/04/2010 12:58 pm by Brad Lawryk | Last modified 1/11/2010 12:07 pm by Brad Lawryk | 1010 views | 6 replies |

Brad Lawryk

data or image upload ... but not both

I worked on this over the holidays without posting because you guys were likely gone. But I was unable to find any answers here ... clues but no answers.

I can either get an image upload to either upload the file or I can get it to add the data to the database for the image field. But not both at the same time ......

Why is this product so complicated?

Sign in to reply to this post

Jason ByrnesWebAssist

To store the file name in the database, you must use the DataAssist insert record server behavior. it will not work with the Dreamweaver insert record serve behavior due to limitations.

See the "How to apply Digital File Pro to DataAssist Insert and Update pages" tutorial in the how to section of the DFP support page:
digital-file-pro/

if you are still having difficulties, please send a copy of your page so I can examine the code.

Sign in to reply to this post

Brad Lawryk

Thanks Jason,

Got it uploading to proper directories and everything. But that has left me with another problem.

I have a detail image and a thumb image. Both get uploaded to the server fine.

- Problem 1: It only adds the file name of the detail image to the database. I assume I need to add another field perhaps fpr the thumb image to the database, but how do I get it to add the thumb image to the thumb field with only one file upload field?

I looked through the documentation pdf files and I don't see anything about this.

Sign in to reply to this post

Brad Lawryk

Got it all figured out ... persistance pays off.

Thanks, now I have work to get done .... ;-)

Brad

Sign in to reply to this post

Jason ByrnesWebAssist

OK, glad to hear it is working.

Sign in to reply to this post

walt125013

Same Database issue in regrads to thumbnail filename

Hi Brad! I am having that same problem I think...

When I set up the image upload, it is doing everything fine EXCEPT the thumbnail image name is not going to the database. How is this resolved?

I have followed the tuts and I am happy that both the original image and the thumbnail are showing up in their respective folders, but why doesn't the text appear in the database for the thumbnail?

Sign in to reply to this post

Brad Lawryk

Hi walt,

I will assume you made the same mistake I did. Did you create two seperate folders for the images and two seperate database fields?

That was my mistake. Youonly need the one database field for both the thumbnail and the original and any other versions of the image.

All you need to do is delete the '_thumb' or what ever the the default rename is set to so that each version you upload has the same name. Then when you call it up to display from the database you use the same field for all versions but you set your image source to go to the appropriate folder for what you are displaying.

So in short you end up with a file in each folder with the exact same file name which is what gets sent to the database.

Now that I am used to that, I kind of like that. Really does make sense. Hope that helps.

Brad

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