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