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


Insert upload path to database

Thread began 4/06/2012 11:38 am by dvan_zelst | Last modified 4/06/2012 12:08 pm by dvan_zelst | 898 views | 1 replies |


Insert upload path to database

Hi, i created a form where an image can be uploaded.
With Digitial File Pro i created it in a way that it will use the name formfield as being the name of the upload folder by choosing the lightning bolt and selecting the form field for the name.
I did the same for the filename. So this will cause the image to end up in the folder named as specified in the form name field and the image file will have the same name as well.

All works fine except that the dataassist insert behavior at this moment only inserts the correct filename. I want to insert the folder and filename as a whole path in the database like: foldername/filename
In my case both will have the same name like: testname/testname.jpg

Is this possible to do with the DataAssist insert behavior and if yes what to choose and how to combine both? I now choose the Server_name and it will insert only the name currently.


Sign in to reply to this post


Because i use a form field as being the name of the upload folder i used below code inside the dataAssist insert behavior for the file field:

<?php echo ((isset($_POST["venue_name"]))?$_POST["venue_name"]:"")."/".$WA_DFP_UploadStatus["WA_UploadResult1"]["serverFileName"]; ?>

It is working perfect, just want to know if this is the correct way to do it.


Sign in to reply to this post

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