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 upload help

Thread began 1/21/2010 5:00 pm by info357532 | Last modified 1/26/2010 4:43 pm by info357532 | 1041 views | 8 replies

miav solutions

I am trying to get the same information entered into the DB file that is entered for an image file (more strictly just the name of the file), in reality all I need is the file name of the .pdf file uploaded to be entered into the DB recordset upon completion of upload.

I have inserted into the products table a field for "FLOOR PLANS", this field needs to contain the name of the .pdf file uploaded. The floor plan is called through a direct link, i.e. <a href="../PDF/Upload/<?php echo $row_WADAProducts['ProductFloorPlan']; ?>">Floor Plans</a>. and opens the .pdf file in a seperate browser window when clicked.

So far I am able to get the .pdf file to upload with only one problem, the recordset for $row_WADAProducts['ProductFloorPlan'] is being set with the value of "1" to which I do not know why and for the life can not figure out why.

Below is the code used in the Products_Insert.php & Products_Update.php for the image (in this case file) parameters array.

// WA_UploadFloorPlan1 Params Start
$WA_UploadFloorPlan1_Params = array();
// WA_UploadFloorPlan1_1 Start
$WA_UploadFloorPlan1_Params["WA_UploadFloorPlan1_1"] = array(
'UploadFolder' => "../PDF/Upload/",
'FileName' => "[FileName]",
'DefaultFileName' => "");
// WA_UploadFloorPlan1_1 End
// WA_UploadFloorPlan1 Params End?>
WA_DFP_UploadFiles("WA_UploadFloorPlan1", "ProductFloorPlan", "2", "[NewFileName]_[Increment]", "false", $WA_UploadFloorPlan1_Params);

I am not sure if any of the above is the issue however I can tell you that when I set the WA_DFP_UploadFiles("xxx","xxx","x","[xxx]_[xxx]","FALSE","xxx") instead of true I am able to upload the .pdf file without error except for the value="1". If this remains as "true" the error generated is my best guess an "invalid image file" and will not allow the uploader to progress past the error...
...I am able to bi-pass this issue by manually setting the recordset using MySQL with the file name however this is defeating the purpose...

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