close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

File Not Uploading

Thread began 4/26/2011 3:13 am by Lee Firth | Last modified 4/26/2011 1:52 pm by Lee Firth | 956 views | 3 replies

Lee Firth

File Not Uploading

I am posting here as I believe the WebAssist->File Manipulation->Upload behavior is part of the Universal Email extension. I have run the DataAssist wizard which has generated the insert page. To this I have added a HTML Editor and a file field to which I have applied the file upload SB to generate the details and thumbnail images. My problem is that the file doesn't upload to the server and there are no errors. I have followed the "Applying Digital File Pro to your Insert page" tutorial. Here is the generated code or the file upload & insert record SB's.

// WA_UploadResult1 Params Start
$WA_UploadResult1_Params = array();
// WA_UploadResult1_1 Start
$WA_UploadResult1_Params["WA_UploadResult1_1"] = array(
'UploadFolder' => "../product_images/",
'FileName' => "[FileName]",
'DefaultFileName' => "",
'ResizeType' => "2",
'ResizeWidth' => "250",
'ResizeHeight' => "120",
'ResizeFillColor' => "#FFFFFF" );
// WA_UploadResult1_1 End
// WA_UploadResult1_2 Start
$WA_UploadResult1_Params["WA_UploadResult1_2"] = array(
'UploadFolder' => "../product_images/thumbnails/",
'FileName' => "[FileName]_thumb",
'DefaultFileName' => "",
'ResizeType' => "2",
'ResizeWidth' => "100",
'ResizeHeight' => "120",
'ResizeFillColor' => "#FFFFFF" );
// WA_UploadResult1_2 End
// WA_UploadResult1 Params End
// WA Application Builder Insert
if (isset($_POST["Insert_x"])) // Trigger
$WA_connection $harrisda_data;
$WA_table "products";
$WA_sessionName "WADA_Insert_products";
$WA_redirectURL "products_Results.php";
  if (
function_exists("rel2abs")) $WA_redirectURL $WA_redirectURL?rel2abs($WA_redirectURL,dirname(__FILE__)):"";
$WA_keepQueryString false;
$WA_indexField "product_id";
$WA_fieldNamesStr "categories_id|products_model|products_description|products_image|products_sort_order";
$WA_fieldValuesStr "".((isset($_POST["categories_id"]))?$_POST["categories_id"]:"")  ."" "|" "".((isset($_POST["products_model"]))?$_POST["products_model"]:"")  ."" "|" "".((isset($_POST["products_insert"]))?$_POST["products_insert"]:"")  ."" "|" "".$WA_DFP_UploadStatus["WA_UploadResult1"]["serverFileName"]  ."" "|" "".((isset($_POST["products_sort_order"]))?$_POST["products_sort_order"]:"")  ."";
$WA_columnTypesStr "none,none,NULL|',none,''|',none,''|',none,''|none,none,NULL";
$WA_fieldNames explode("|"$WA_fieldNamesStr);
$WA_fieldValues explode("|"$WA_fieldValuesStr);
$WA_columns explode("|"$WA_columnTypesStr);
$WA_connectionDB $database_harrisda_data;
  if (!
session_id()) session_start();
$insertParamsObj WA_AB_generateInsertParams($WA_fieldNames$WA_columns$WA_fieldValues, -1);
$WA_Sql "INSERT INTO `" $WA_table "` (" $insertParamsObj->WA_tableValues ") VALUES (" $insertParamsObj->WA_dbValues ")";
$MM_editCmd mysql_query($WA_Sql$WA_connection) or die(mysql_error());
$_SESSION[$WA_sessionName] = mysql_insert_id();
  if (
$WA_redirectURL != "")  {
    if (
$WA_keepQueryString && $WA_redirectURL != "" && isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] !== "" && sizeof($_POST) > 0) {
$WA_redirectURL .= ((strpos($WA_redirectURL'?') === false)?"?":"&").$_SERVER["QUERY_STRING"];
header("Location: ".$WA_redirectURL);

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





Ease of use


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