close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

DA Insert not triggering upload

Thread began 4/12/2010 1:05 pm by Mikel Jones | Last modified 4/13/2010 10:14 am by Mikel Jones | 925 views | 7 replies

Mikel Jones

DA Insert not triggering upload

So I created a new page and added an upload behavior to it with no issues. Progress bar, upload and all went fine. The server had the file after the upload and the progress bar worked great.

So added the upload behavior to an existing DA insert page and this is where I ran into problems.

The trigger for the upload does not go off when the insert button is pressed. The upload never happens and the file does not make it to the server.

The trigger for the upload behavior is...

  <?php
WA_DFP_SetupUploadStatusStruct("WA_UploadResult1");
if($_SERVER["REQUEST_METHOD"] == "POST"){
WA_DFP_UploadFiles("WA_UploadResult1", "BkgImage", "0", "", "false", $WA_UploadResult1_Params);
}
?>  




Now my understanding is that this should go off when the form is posted back to the insert page.

The insert trigger is the following...

  // WA Application Builder Insert
if (isset($_POST["Insert_x"])) // Trigger
{
$WA_connection = $localhost;
$WA_table = "listing";
...  



This code is triggered based on the $_POST["Insert_x"] array entry and not the POST METHOD.

I attempted to find a way to set the upload to the $_POST["Insert_x"] array entry and was unable to find anything.


What am I missing?

Note: I attached the insert php file as a text file to this post.

...

Attached Files
listing_Insert.txt

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