close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Update page not uploading file and putting in database

Thread began 9/24/2009 5:30 am by dave315749 | Last modified 9/24/2009 11:41 am by Jason Byrnes | 1565 views | 3 replies |

dave315749

Update page not uploading file and putting in database

Having a little trouble with the using default filename and uploading a new file. I have read all of the instructions and tryed a few suggestions in the forum.

Here is the code

It is not uploading a image and not putting it in the database field.

what am i doing wrong?

Attached Files
products_Update2.php.zip
Sign in to reply to this post

tom92909Beta Tester

1st... Are these paths correct?

<?php require_once('../../Connections/wearyour.php'); ?>
<?php require_once("../../WA_DigitalFilePro/HelperPHP.php"); ?>
<?php require_once("../../WA_DataAssist/WA_AppBuilder_PHP.php"); ?>

  It is not uploading a image and not putting it in the database field.  



The actual Upload isn't working? Is that correct? No files are getting saved to the images directory? Is the path correct for the images directory?

Sign in to reply to this post

dave315749

Yes the paths are correct, and there are no files being uploaded to the directory... and nothing into the database.

the products insert page works... attached.

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

Jason ByrnesWebAssist

For image upload to function, the forms encoding type must be set to multipart/form-data

change the form tag:
<form action="products_Update.php?id=<?php echo(rawurlencode($row_WADAproducts['id'])); ?>" method="post" name="WADAUpdateForm" id="WADAUpdateForm">


to:
<form action="products_Update.php?id=<?php echo(rawurlencode($row_WADAproducts['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...