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

Uploading files on a update form.

Thread began 3/07/2014 2:57 pm by The Flying Fox | Last modified 6/04/2014 11:24 am by Jason Byrnes | 865 views | 13 replies |

The Flying Fox

Uploading files on a update form.

I have a update form which has a upload file field

this is for insurance documents to be uploaded

My file field has a hidden field.

file field name = insurance
hidden field = new_insurance

I have tried to follow the tutorial but this doesn't seem to work for me

I have the hidden field bound to the file column in my recordset.

in the upload file behavior, I have bound the Default file field to the hidden field.

when I run the update all I get in the database is the file extension

Can someone explain where I'm going wrong..

file attached

Attached Files
userupdate.php
Sign in to reply to this post

Jason ByrnesWebAssist

when you add file uplaod to your page, a new binding group is created:

WA Uploaded Files(Name of File Field)

this binding group contains a binding name d Server File Name.


you need to edit the update behavior to use the Server File binding for the file column.

Sign in to reply to this post

The Flying Fox

Hi Jason,

I have tried this and still get the same results.

Andy

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

The Flying Fox

Sorted

Hi Jason,

I've found out where I was going wrong.

I omitted the [FileName] from the file field in the upload files bindings

Thanks

Sign in to reply to this post

Jason ByrnesWebAssist

ok, glad to hear it is working.

Sign in to reply to this post

The Flying Fox

I am really pulling my hair our with uploading files.

I have followed all the rules and cannot work out why my files will not upload.

can you please take a look at the attached file and let me know where I am going wrong.

everything updates to the database but nothing is saved for the file name or as documents on the server

Thanks you.

Attached Files
user_form_update.php
Sign in to reply to this post

Jason ByrnesWebAssist

the encoding type for the form uses application/x-www-form-urlencoded

enctype="application/x-www-form-urlencoded"


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

enctype="multipart/form-data"

Sign in to reply to this post

The Flying Fox

thanks Jason not sure where that code came from..

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

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