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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

upload file not working

Thread began 9/05/2016 6:37 am by tony | Last modified 9/05/2016 11:09 pm by Ray Borduin | 215 views | 1 replies |

tony

upload file not working

Hi all,
I tried everything, but I cannot make "upload file" to work.
I have a form with a file field.
Here is what I have done:
1- selected file field in design view
2- dropped "my_file_field" from bindings panel over the file field (there are other items related to the file field that are referenced witha lighning icon; I ignored them; but would be nice to know how to use them; there a re no info about that on the help system))
3- added the web assist > file manipulation > upload file server behaviour and set with the values specified in the attachments (private)
4- edited the Insert Single record server behaviour and pointed the file field to the form file field

TESTING the page result: record inserted but file field is empty and no file has been uploaded.
NOTE: upload file folder ("uploads") has this file permission: 777.

If I add WA validation (file extension) to the field, it fails even when the file extenion is right.

Here is the debug info displayed when validation fails:

Status object: WA_UploadResult1
statusCode : -1
errorMessage :
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileWasOverwritten :
fileWasSkipped :
fileWasRenamed :
fileSize : -1
isImage :
imageWidth : -1
imageHeight : -1
WA_UploadResult1_1:
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileSize : -1
imageWidth : -1
imageHeight : -1

How can I make it to work?
TIA
tony

Sign in to reply to this post

tony

Ok.
I got it working.
The enctype="multipart/form-data" was missing on the form definition.
Now it works as expected.

tony

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