close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


Form Binding window, lots of Information

Thread began 5/19/2010 12:58 am by Cologne | Last modified 5/19/2010 10:44 am by Jason Byrnes | 624 views | 1 replies |


Form Binding window, lots of Information


when I insert the FileManupulation Server extenstion. there are lots of names and features added in the FORM Binding Window.

first, I got 1 for every upload i insert.
Then, I think, I got some general information, information for the first upload, the second, and so on.
And, I got the same information in the FORM Binding window. Under my normanl field names etc.

I need to know, what is that about and which one do I have to use when?


Sign in to reply to this post

Jason ByrnesWebAssist

In the form bindings panel when a file filed is added, there are 9 extra bindings created.
Informtion about a file uploaded using a form is not contained in the POST array. another array, the FILES array is created with information such as:

the client file name: <?php echo((isset($_FILES["fileField"]))?"fileField":"") ?>

the file extesnsion: <?php echo((isset($_FILES["fileField"]))? preg_replace('/^.*\./', '', $_FILES["fileField"]["name"]) :"") ?>

and Mime type: <?php echo((isset($_FILES["fileField"]))?$_FILES["fileField"]["type"]:"") ?>

These bindings should be used when you need to know something about the file when the form is posted. For example to validate that a file was selected.

to get a better understanding, create a blank PHP page, and add only the form tag and a file field. then examine the bindings panel. Do this before adding the upload file server behavior.

Once you add the upload file server behavior, the forms bindings dont change, but two new binding groups are created "Uploaded files (fileField)" and "Uploaded Files Global Status". The Global Status one is only used for troubleshooting.

The Uploaded files (fileField) binding group contains information about the file after it has been uploaded to the server.

If you examine it closely there 12 initial variables, ranging from "Status Code" to "Server File Name" and "Debug info".

If you stick with just the defaults and only upload the image to one location, there are 9 other bindings named like "[FileName]: Server File Name"

When uploading only one copy of the file, these other 9 variables are not really important.

But if you are uploading more than one copy of the file, say creating a thumbnail, then another 9 variables will be created named like "thumbs/[FilesName]: Server File Name".

In this case those additional bindings are used to get unique information about each copy of the file that is created.

The thumbnail file may be created with a different file name, so to store the thumbnails file name in the database, you would want to use the "thumbs/[FilesName]: Server File Name" binding.

to get a better understanding of these variables, add the upload file server behavior to the page, and configure it to only upload one copy of the file, then examine the bindings panel.
Now edit the upload behavior and configure it to create a thumbnail as well, then examine the bindings panel again.

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





Ease of use


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