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

rating

Cannot view uploaded images

Thread began 10/18/2010 5:39 am by Jordan | Last modified 10/18/2010 4:35 pm by Jason Byrnes | 1075 views | 15 replies |

Jordan

Cannot view uploaded images

Hello, I would really like some assistance on how to view uploaded images. It would seem that the information for the uploaded image isnt being sent to the database, I think.

I have followed the guides but still no luck.

When I go to the details page all I see is a broken image icon. When I check the database, I see no referral to the uploaded image, however the image is being uploaded and resized fine.

Thank you for your help on this one.

Sign in to reply to this post

Jason ByrnesWebAssist

do you see the uploaded file in the upload directory?

please send a copy of your pages in a zip archive so i can examine the code.

Sign in to reply to this post

Jordan

Hi, thanks for the reply. Yes the file goes to the correct folder ok but just doesnt register on the database. I have run through the things said in the forum before, but I tried the things that relate to me. I just hope that I missed something easy. I'm sure it is that.

Attached Files
SITE.zip
Sign in to reply to this post

Jason ByrnesWebAssist

In the insert record behavior, the product image column is bound to the product image form element. you will need to edit this and bind the WA Uploaded Files (ProductImage) - > Server File Name instead.

Sign in to reply to this post

Jordan

I feel a little silly, but could you simplify that a little more for me? I think I am still not really getting it, sorry.

Do I do this from the file upload behaviour?

Thank you.

Sign in to reply to this post

Jason ByrnesWebAssist

No you need to edit the Insert Record server behaivor.

Go to Window -> Server Behaviors.

Double click the insert record server behavior to edit it.

select the ProductImage column.

click the lightning bolt icon next to value.

select the WA Uploaded Files (ProductImage) - > Server File Name variable.

Sign in to reply to this post

Jordan

Strange that it isn't working. I used the value:

<?php echo $WA_DFP_UploadStatus["WA_UploadResult1"]["serverFileName"]; ?>

I have also compared everything to the powerstore script that I have but still no joy.

I will create another test to see if it works then. Thank you for your help so far.

Sign in to reply to this post

Jason ByrnesWebAssist

on the detail page, you need to add the path to the uplaod folder in the image source:
<img class="WADADetailsMainImage" src="../images/productImage/<?php echo $row_WADAproducts["ProductImage"]; ?>" alt="" />

Sign in to reply to this post

Jordan

Thank you for the reply and the help so far.

I can see the file name in the delete page, which tell me the database is seeing it, however unfortunately the image in the details page is not showing.

I have in the source As you have suggested;

<img class="WADADetailsMainImage"src="../images/productImage/<?php echo $row_WADAproducts["ProductImage"]; ?>" alt="" />

Unfortunately it is not showing. Maybe I have missed something else.

Sign in to reply to this post

Jason ByrnesWebAssist

on the detail page, right click where the image should be displaying and select "View Image" what is the address in the address bar? Does the image come up?

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