close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

file manipulation with Design Extender package

Thread began 3/18/2012 7:36 am by turk361661 | Last modified 3/21/2012 12:37 pm by turk361661 | 1745 views | 7 replies

Jason ByrnesWebAssist

there are a number of problems with the page you have sent:

1) you will not be able to use the Dreamweaver Insert Behavior to store the uploaded file name to your database.This can only be done using the Data Assist Insert / Update record behavior.


File upload works like this:

the form sends the file to server

the server saves that file to upload folder you specify and performs any necessary renaming of the uploaded file if it already exists, or other formatting based on your settings in the upload wizard.

the file name is saved in a variable that has a binding in the bindings panel under WA Uploaded Files (File Field Name) -> Server File Name

The limitation to the Dreamweaver Insert / Update record behavior is that it can only use form elements to get information to store, it cannot access the server file name variable that the upload creates, this is why Data Assist must be used instead.

2) The upload code references a file field named "AvailFile2" but yours is named "AvailFile"

<input type="file" name="AvailFile" id="AvailFile" />



this is the same name as a hidden form element on your page:

php:
<input type="hidden" name="AvailFile" value="<?php echo htmlentities($row_rsAvail['AvailFile'], ENT_COMPAT'utf-8'); ?>" size="32" />



all form elements must use a unique name.

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

in the tag selector, select the form tag, in the encoding type select list, select multipart/form-data

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