close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

File Upload with New Data Bridge

Thread began 5/10/2012 12:17 pm by mouse426912 | Last modified 5/14/2012 9:28 am by Jason Byrnes | 1645 views | 7 replies |

mouse426912

File Upload with New Data Bridge

My company just upgraded to DataBridge. I can no longer get uploads to work though I had no problem with the older version of DataAssist. I'm using the same directions I used in the older version - Adding Digital File Pro to DataAssist Insert and Update Pages.

Are there newer instructions for the new version? Where can I find them. I have spent hours on this and am getting rather frustrated.

Sign in to reply to this post

Jason ByrnesWebAssist

although it is a newer version, the old instructions are still valid, the only difference is the access point.

usually when file upload is not working it is because you are manually changing the type of the form element from text to file. when you do this manually, it will not change the encoding type of the form.


In the tag selector, select the form tag, then in the property inspector, make sure to change the encoding type to multipart/form-data

if you continue to have a problem, send a copy of your page so I can look at the code.

Sign in to reply to this post

mouse426912

Here is the file

I am enough of a newbie with DataBridge that I'd like you to look at this, please. I have uploaded as a .txt file as .php is not allowed. Also, I do see that the form does already say multipart/form-data.

Thanks

Attached Files
menus_insert.txt
Sign in to reply to this post

Jason ByrnesWebAssist

looks like it is set up correctly.

to troubleshoot the issue, we will need to make some code checnges to get som information.

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) change the following line:

php:
$WA_redirectURL = "menus_update.php?MID=[Insert_ID]";



to

php:
$WA_redirectURL = "";



this will prevent the redirect

3) On the bindings panel, expand the uploaded files, global status binding group, and add the debug info binding to your page

4) add this code just before the </body tag:

php:
<?php

echo("POST:"); 
echo(
"<pre>
var_dump(
$_POST);
echo("
</pre>");
echo("
Files:"); 
echo("
<pre>
var_dump($_FILES);
echo(
"</pre>");
?>



and post back the results after trying an upload.

In future, compress the php file to a zip archive to send php files.

Sign in to reply to this post

mouse426912

Syntax Problem

When I put in the code:

<?php
echo("POST:");
echo("<pre>
var_dump($_POST);
echo("</pre>");
echo("Files:");
echo("<pre>
var_dump($_FILES);
echo("</pre>");
?>

it gives me a syntax error.

Sign in to reply to this post

Jason ByrnesWebAssist

this line:
echo("<pre>

should be:
echo("<pre>");

Sign in to reply to this post

mouse426912

Your debugging language helped

I was able to locate the problem - which was me not your program - and fix it. Thanks for the help

Sign in to reply to this post

Jason ByrnesWebAssist

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