close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

File upload not working

Thread began 5/09/2013 3:28 pm by Nutzo247 | Last modified 5/14/2013 11:18 pm by Nutzo247 | 2438 views | 9 replies |

Nutzo247

File upload not working

I'm trying to create an product page to update the database but when I create the upload for the jpeg images (both full size and thumbnail) it doesn't work. Also I want to update the database with the filename uploaded but I don't know with variable I should use.

Please help

Sign in to reply to this post

Jason ByrnesWebAssist

Send a copy of the page so i can see the code.

The File Upload server behavior will create a Binding Group named WA Uploaded Files (<File Field Name>)

In theWA Uploaded Files (<File Field Name>) binding group there will be bindings that have the Upload path for the large image at the beginning of the names, and another set of with the path for the thumbnail image at the beginning of the name.

in both sections there is a binding for Server file name.

Use those bindings in the insert behavior.

Sign in to reply to this post

Nutzo247

here is the file,

but I don't know which binding is correct:

-Client File Name
-Server File Name
-Server Simple File Name

Sign in to reply to this post

Jason ByrnesWebAssist

1) For File Upload to work, the forms encoding type must be set to multipart/form-data.

In the tag selector, select the form tag and change the encoding type to multipart/form-data in the property inspector.

2) You are using the Dreamweaver Insert behavior. The DW INsert Behzavior is limited in only being able to use form data bidnings, it cannot access the DFP Bindings that are created, you should use the data assist insert record behavior instead.

3) The File upload code happens after the insert code, it should come before the insert code.

4)

Originally Said By: Nutzo247
  here is the file,

but I don't know which binding is correct:

-Client File Name
-Server File Name
-Server Simple File Name  



The Server File Name binding is the correct one to use. That binding will contain the files name that is created on the server.

Sign in to reply to this post

Nutzo247

This post has been deleted.

Nutzo247

Checkbox not updating in to SQL

Originally Said By: Jason Byrnes
  2) You are using the Dreamweaver Insert behavior. The DW INsert Behzavior is limited in only being able to use form data bidnings, it cannot access the DFP Bindings that are created, you should use the data assist insert record behavior instead.  
Attached Files
addproduct2.zip
Sign in to reply to this post

Jason ByrnesWebAssist

in the database set the datatype for the column to int and in the Insert behavior, set the Data type for the column to Checkbox 1,0

Sign in to reply to this post

Nutzo247

I've done that.. the slight difference is that the database datatype is tinyint(1)... Anything else?

Sign in to reply to this post

Jason ByrnesWebAssist

I'll need to troubleshoot directly, see the private message section.

Sign in to reply to this post

Nutzo247

thanks for the offer... but it started working after I corrected the username and datestamp.

Thanks Again.

Sign in to reply to this post
loading

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