PDA

View Full Version : Digital File Pro


dnys04173367569
08-09-2009, 01:02 PM
I am currently on Digital File Pro version 1.1.3

Currently I am working on an Admin backend to a new website and I am looking to upload product images into my database.

I can currently upload the actual filename of the image, however, the database is not storing the actual location of the image file.

i.e. the database stores the image name 1.jpg using the [filename] default
1.jpg

but i wish the actual location to be stored with the filename i.e. images/productShots/images/small/1.jpg

but I have been unable to get the Insert Records Server Behaviors to accept this. Any help in this matter would be useful.


My second question is - Using Digital File Pro, is there any way to store an actual image in a BLOB field within the mysql database. As I am also looking to store images in the future within the database itself.

Any help in these two matter would be very helpful.

Regards

dnys04173367569

Jason Byrnes
08-10-2009, 12:16 PM
along with the server file name variable that is created by Digital file pro, there is also the server directory variable.

When you bind the image column to the server file name variable, copy the code that is added, it will look similar to:
<?php echo $WA_DFP_UploadStatus["WA_UploadResult1"]["serverFileName"]; ?>

then clickthe lightning bolt again, this time sselect the server directory. it will add code simalr to:
<?php echo $WA_DFP_UploadStatus["WA_UploadResult1"]["serverDirectory"]; ?>

Place you cursor at the enad and paste the server file name code, so the entire code string looks like:
<?php echo $WA_DFP_UploadStatus["WA_UploadResult1"]["serverDirectory"]; ?><?php echo $WA_DFP_UploadStatus["WA_UploadResult1"]["serverFileName"]; ?>

Digital File pro does not support uploading images to a blob field, the following web page has an example of how to accomplish this using PHP and MySQL:
http://www.anyexample.com/programming/php/php_mysql_example__image_gallery_%28blob_storage%2 9.xml