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

Basic File Upload Problem

Thread began 7/20/2010 5:51 pm by clive.henderson222953 | Last modified 7/22/2010 10:10 am by Jason Byrnes | 916 views | 6 replies |

clive.henderson222953

Basic File Upload Problem

I'mtrying to upload an image file and place the filename in a database record field.'ve followed the 5 page pdf tutorial but the options mentioned don't exist.
Basically
i created a form with a text fiield and submit button which worked OK.

I then made the text field hidden and created file field and applied the file manipulation upload behaviour

Then changed the update behaviour to use the new file field

This seems to follow the 5 page pdf instructions but the database is never updated.

Any help appreciated as I'm sure this should be an easy thing to do.

Test webpage is here: upload_test.php

Thanks
Clive

Sign in to reply to this post

Jason ByrnesWebAssist

please send a copy of the page so i can examine the code.

Sign in to reply to this post

clive.henderson222953

Thanks for the response Jason.
I've attached the page
Regards
Clive

Attached Files
upload_test.zip
Sign in to reply to this post

Jason ByrnesWebAssist

File upload will not work in conjunction with the Dreamweaver Insert or Update record server behaviors.

The native Dreamweaver Insert and Update record server behaviors are limited in that they can only except data from a form.

A file field does not send the file as part of the standard POST array, ot is sent to server using the FILES array, the file upload code tells the server to process the FILES array and move the file to the location on your server you specify, then stores the name of the file in a variable named Server File name.

You will need to use the DataAssist Insert and Update record behaviors to store the WA Uplaoded files -> Server File Name in the database, the Dreamweaver Insert and Update behaviors will not allow this.

Sign in to reply to this post

clive.henderson222953

Ah! Thanks for this, but I'm still having problems.

I set up a form with a textfield and submit button
Then applied the dataAssist Update behaviour mapping the form text field to the database field.

Changed the textfield to hidden

Created a File Field
Tried to apply the File Manipulation Upload behavior to the File Field
Set up upload directory OK

When I click the lightning bolt on Default File I don't have WA Upload File option!

I vcan see the form though with a a value frmfilename Simple File Name

Tried using thes value but still the database is not updated.

Not sure what I'm doing wrong but I've attached the file

Attached Files
upload_test.zip
Sign in to reply to this post

clive.henderson222953

Problem Resolved

Thanks Jason for your time.

I've now resolved the problem, understanding that File Upload does works with the DataAssist Upload was Key.

Thanks very much
Clive

Sign in to reply to this post

Jason ByrnesWebAssist

OK, glad to hear it is working.

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