close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Image Upload problems

Thread began 6/01/2010 9:28 pm by mike401680 | Last modified 6/03/2010 8:17 am by Jason Byrnes | 1051 views | 3 replies |

mike401680

Image Upload problems

Hi can some body help what little hair I have left is being pulled out at a rapid rate... I have two queries.

1). I have a stack of "upload image" on Update pages working fine but on one page it just doesn't upload an image, i've followed the tutorial instructions to the letter even copied and pasted working copy off another page yet still no joy.

2) Another Puzzler, I have locally a page that is taking data from a temporary holding table when I select insert it is inserting the data into the live website table at the same time i'm uploading picture and the picture name is going into the live database. All is working great, I've uploaded the php file to the live server and all the information inserts into the live table except the image name and no image is also uploaded, what is going on, i've been struggling for the last 8 hours on the above 2 issuse and it's doing my nut, any help gratefully recieved. Mike

Sign in to reply to this post

Jason ByrnesWebAssist

Please send a copy of the pages you are having problems with so I can examine the code.

Sign in to reply to this post

mike401680

File sto review with regards to uploading issues

Originally Said By: Jason Byrnes
  Please send a copy of the pages you are having problems with so I can examine the code.  



Hi Jason please find attached to this email the two files mentioned previously, file one ContactLive_Update is the file that updates the temporary data table to the live data table, this file works fine locally, transfers all he data and uploads an image, when live it transfers the data but will not upload an image.

The second file is Contact_Update and this is the file tht will not update an uploaded image eith erlocally or live. Your assistace is greatly apprecaited i'm now running over on this job.

Knd regards, Mike

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

Jason ByrnesWebAssist

for file upload to function properly, the forms encoding type must be set to multipart/form-data.

change the form tag:

php:
<form  action="Contact_Update.php?Contact_ID=<?php echo(rawurlencode($row_WADAtbl_Contact['Contact_ID'])); ?>" method="post" name="WADAUpdateForm" id="WADAUpdateForm">



to:

php:
<form  action="Contact_Update.php?Contact_ID=<?php echo(rawurlencode($row_WADAtbl_Contact['Contact_ID'])); ?>" method="post" enctype="multipart/form-data" name="WADAUpdateForm" id="WADAUpdateForm">
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...