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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

What tool or combination of tools to use to build a form with image upload?

Thread began 1/02/2014 6:35 pm by FPhu61701534 | Last modified 1/07/2014 10:14 pm by FPhu61701534 | 572 views | 18 replies

Jason ByrnesWebAssist

One issue i see is that you have bound the fi;le name setting to the Server File name binding that is created by the upload.

this is circular logic. you cant use the server file name variable for the file name setting since the file has not yet been created on the server.

the server file is a variable created by the upload after the file has been created on the server using any renaming settings you have set. In your case, you have set the if file exists to over write the existing file, but if you had selected to rename the new one with an increment value, this would need to get added to the files name.

in the upload settings, for the file name, you should leave the default value:
[FileName]

this will use the original file name when it saved the file on the server.


to trouble the file upload, make the following changes:

1) add the following code at line 1 to turn on error reporting:

php:
<?php 

error_reporting
(E_ALL);
ini_set('display_errors','on');
?>



2) add the following before the </body> tag:

<pre><?php var_dump($_FILES); ?></pre>



3) place you cursor in the body of the page, open the bindings panel, expand the WA UPloaded Files Global Status collection, select the Debug Info binding and click the Bind button at the bottom of the binding panel to add the debug info to your page.


once these changes are made, let me know and i will test the page to see the result and determine how to proceed.

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