close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Data assist

Thread began 12/24/2009 8:55 am by hbibizadeh396670 | Last modified 2/10/2010 1:07 pm by Jimmy Wu | 1896 views | 6 replies |

hbibizadeh396670

Data assist

I managed to successfully add images to a file, but when I update the file and try to replace the image gets stopped. The field images are blank and unless I insert the images again, the field containing the previous images is blank (it overrides the previous pictures with blank). Could you please tell me how to replace the information on this file containing images without having to insert the images again?

Sign in to reply to this post

Ray BorduinWebAssist

Set the default value in the upload server behavior to the current value from the recordset.

Sign in to reply to this post

hbibizadeh396670

Originally Said By: Ray Borduin
  Set the default value in the upload server behavior to the current value from the recordset.  



could you plz provide instructions on this

Sign in to reply to this post

Jimmy Wu

Go to the WA Upload Files server behavior and double click it. On the second step of the wizard, click on the lightning bolt icon next to the Default file field and select the filename from the recordset. This should specify the default value if nothing is uploaded.

Sign in to reply to this post

webmaster286369

same problem

This is the same problem I have. I have set the default value to the value of the image field from the recordset, yet whenever I upload and nothing is set in the file field, it overwrites the existing image with nothing.
Here is the code:
<?php
WA_DFP_SetupUploadStatusStruct("WA_UploadResult1");
if(isset($_POST["Update_x"])){
WA_DFP_UploadFile("WA_UploadResult1", "newhousepic", "".$row_WADAHOUSE['housepic'] ."", "".$WA_DFP_UploadStatus["WA_UploadResult1"]["serverDirectory"] ."/images/HOUSEPICS/", "".((isset($_POST["WADAUpdateRecordID"]))?$_POST["WADAUpdateRecordID"]:"") ."".$WA_DFP_UploadStatus["WA_UploadResult1"]["fileExtension"] ."", "0", "".((isset($_POST["WADAUpdateRecordID"]))?$_POST["WADAUpdateRecordID"]:"") ."".$WA_DFP_UploadStatus["WA_UploadResult1"]["fileExtension"] ."", "300", "true", "500", "500");
}
?>
Please help?

Sign in to reply to this post

webmaster286369

Got it!

Nevermind, it works with by setting the default value to the hidden field that contains the recordset, not the value directly from the recordset.
Here is the code:
<?php
WA_DFP_SetupUploadStatusStruct("WA_UploadResult1");
if(isset($_POST["Update_x"])){
WA_DFP_UploadFile("WA_UploadResult1", "newhousepic", "".((isset($_POST["housepic"]))?$_POST["housepic"]:"") ."", "".$WA_DFP_UploadStatus["WA_UploadResult1"]["serverDirectory"] ."/images/HOUSEPICS/", "".((isset($_POST["WADAUpdateRecordID"]))?$_POST["WADAUpdateRecordID"]:"") ."".$WA_DFP_UploadStatus["WA_UploadResult1"]["fileExtension"] ."", "0", "".((isset($_POST["WADAUpdateRecordID"]))?$_POST["WADAUpdateRecordID"]:"") ."".$WA_DFP_UploadStatus["WA_UploadResult1"]["fileExtension"] ."", "300", "true", "500", "500");
}
?>
This thread was helpful: showthread.php?t=8829&highlight=update+blank+image

Sign in to reply to this post

Jimmy Wu

Great to hear you were able to get it working. If you run into any additional issues, feel free to open a new thread.

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

Content

rating

Layout

rating

Ease of use

rating

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