close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

UPDATE form combined with file upload - not updating?

Thread began 6/11/2014 2:42 am by Nathon Jones Web Design | Last modified 6/11/2014 8:53 am by Jason Byrnes | 1300 views | 5 replies |

Nathon Jones Web Design

UPDATE form combined with file upload - not updating?

I have an update form with 4 image fields for changing / uploading product images. The update form works, and the image fields do not overwrite values held in them, however it's not uploading the new images?

I've attached the page for inspection.

Thank you
NJ

Sign in to reply to this post

Jason ByrnesWebAssist

for file upload to work, the forms encoding type must be set to multipart/form-data:

change the form tag:
<form name="editprodFORM" id="editprodFORM" method="POST">

to:
<form name="editprodFORM" id="editprodFORM" method="POST" enctype="multipart/form-data">

Sign in to reply to this post

Nathon Jones Web Design

Sorry, I assumed that one of the server behaviours would have corrected that. So, basically, WebAssist > File Manipulation > Upload will NEVER work on an existing form because you need to manually change the encoding type, right?

Sign in to reply to this post

Jason ByrnesWebAssist

the server behavior wont change the encoding type, but if you use DW to add the file fields to the form by going to Insert -> Form -> File (make sure you use design view and not code view for this) it will change the encoding type.

otherwise, you will need to edit the encoding type manually.

Sign in to reply to this post

Nathon Jones Web Design

I'm using DataAssist to create my forms.

If you don't know about this type of thing - and why would you assume you were doing anything wrong when you're using an extension - then it won't work will it?

If you use the WebAssist > File Manipulation behaviour then you're doomed to it never working on an existing form. So what is the point of it?
Perhaps this is one for the feature request list.

Thanks for the advice
NJ

Sign in to reply to this post

Jason ByrnesWebAssist

if you use Data Assist to create the forms, you can set up the file upload in the Data Assist wizard.

if you are adding the file fields after the fact, then use the DW menu to add the file fields and the encoding type will be taken care of for you.

if you are adding the file fields manually, then you need to set the encoding type manually.


if you would like to make a feature request, please post it to the product Suggestions page:
http://www.webassist.com/community/feedback/dashboard.php

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