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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Record complete image URL

Thread began 6/02/2009 4:53 pm by garry.wilmeth268291 | Last modified 6/19/2009 6:23 pm by garry.wilmeth268291 | 3621 views | 27 replies |

garry.wilmeth268291

Record complete image URL

Hello,

How can I get DFP to record the full URL of the image in the database instead of just recording the file name?

Thanks,

Garry

Sign in to reply to this post

Ray BorduinWebAssist

There are bindings for all parts of the url and file name, and you can just type in the full url manually when you do the insert or update.

So if your binding is currently: <?php echo($yourUploadFileName); ?>

You could just update it to: http://www.yoursite.com/yourdirectory/<?php echo($yourUploadFileName); ?>

Sign in to reply to this post

garry.wilmeth268291

Where would I add the URL... Not sure I understand the directions.

Sign in to reply to this post

Ray BorduinWebAssist

You would add it before the value that you have specified in the user interface so that it would appear in front and show the complete url.

You would update and add the url in the location where it is missing. You want it in the database in a particular column... so add it in the interface where you specify the value that is inserted into that column.

Sign in to reply to this post

garry.wilmeth268291

Would that be in the WA Upload Files server behavior or the Update Record server behavior?

Sign in to reply to this post

Ray BorduinWebAssist

The update record server behavior.

Sign in to reply to this post

garry.wilmeth268291

OK... that is where I had it before and the problem that I run into is having the URL inserted on update when I am not updating the photos in the record. This method causes the default hidden value to be ignored and the URL gets inserted into the database instead. This in turn wipes out the path to my photos.

Sign in to reply to this post

Ray BorduinWebAssist

OK... well lets fix that problem.

What exactly happens? What default hidden value? Do you have the update installed? It had an issue with the default value not working in general.

Please describe exactly what you do when the error occurs with this technique... what the exact result is and what the expected result is. I think we can fix the problem if I understand it better.

Sign in to reply to this post

garry.wilmeth268291

I created an admin section using data assist. I followed the procedure for digital file pro to edit the update form so in the event that I am editing something other than the photos, the update form would apply the database values via the hidden form element. This works great if I just want to store the file name in the database field and not the full path.

When I adjust the update form to insert the path as well, it causes problems when I submit the update form without attaching new photos. Instead of reapplying the already existing database values, it inserts the URL that I have added in the binding minus the file name (because one does not exist in the file upload field).

I hope that makes sense...

Sign in to reply to this post

Ray BorduinWebAssist

It shouldn't work like that. I would like to look at your code. Please post a support incident and include a copy of your update page. I think that can be corrected with a conditional statement so that the url is not added when the field was not updated.

so instead of:
http://www.yoursite.com/yourdirectory/<?php echo($yourUploadFileName); ?>

you use something like:
<?php echo(($yourUploadStatus==1)?"http://www.yoursite.com/yourdirectory/":""); ?><?php echo($yourUploadFileName); ?>

This would only add the http:// at the front if the upload status is equal to 1 (if the file was uploaded). The way you reference the updlaod status depends on the upload field on the page but you can drag it from the bindings for reference.

Sign in to reply to this post
loading

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