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

I can't upload photos

Thread began 8/23/2016 2:44 pm by Jose | Last modified 8/23/2016 5:21 pm by Ray Borduin | 60 views | 4 replies |

Jose

I can't upload photos

Hello, I created file upload to insert product image but not work properly. I have followed the documentation but I don't know what is wrong. If you can help me with that I will appreciate it. I have a form that use any post to insert products. Something like name, price etc. Now I want to insert the product image into a folder. I use ProductImage as field which is type file so I can browse the image well. When I created the file upload I set it by default. I only assigned the variable name which is ProductImage and the folder where I want to upload the image. And I let it with any post. So I don't know what wrong. Please give your advice about that.

Sign in to reply to this post

Ray BorduinWebAssist

Make sure you have updated your <form> tag to include enctype="multipart/form-data" and also make sure you have updated the permissions on the folder you are uploading to to include full access for reading and writing.

Sign in to reply to this post

Jose

That's I am missing. But I have tested in localhost. Do I need permission in localhost ?

Sign in to reply to this post

Jose

Ok now is good. I can Save into the folder but now don't insert to the database. Do I need to change from post to file? So tell me do I have to update the insert too? I have something like $InsertQuery->bindColumn("ProductImage", "s", "".((isset($_POST["ProductImage"]))?$_POST["ProductImage"]:"") ."", "WA_DEFAULT");

Sign in to reply to this post

Jose

Ok it's working. Thank you Ray. I appreciate your help. Thank you very much

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