to start troubleshooting the issue lets use the insert page. change the following line:
$WA_redirectURL = "adminproducts_detail.php";
$WA_redirectURL = "";
so that it will not redirect when a new record is inserted.
then at line 1 add the following code:
next, go to the bindings panel, and add the debug info binding from the WA Uploaded Files Global Status group to the page.
post back the results after trying another test.