close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

URGENT!!! Files not uploading on insert

Thread began 6/30/2010 11:12 am by zuffster370186 | Last modified 6/30/2010 3:12 pm by Jason Byrnes | 1025 views | 3 replies |

zuffster370186

URGENT!!! Files not uploading on insert

I have an Insert Page where one could upload up to 5 files/images. When Insert is clicked, all the other information on the form is submitted to the DB but not the files.

In the database, I have five columns for img1, 2, 3, 4.... The images are not uploading to the file folder specified
HOWEVER
when I go to update that record and select the files/images I want to upload, it works.

Why is this not working on the insert page. I have been working with Digital File Pro 2 since it came out and have not had this problem before.

See my attached php insert page!

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

Jason ByrnesWebAssist

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

edit the form tag:
<form action="homestay_Insert.php" method="post" name="WADAInsertForm" id="WADAInsertForm">

to:
<form action="homestay_Insert.php" method="post" enctype="multipart/form-data" name="WADAInsertForm" id="WADAInsertForm">

Sign in to reply to this post

zuffster370186

Thanks Jason! That worked. If I have more than one file upload in a form, do I have to change the Form Encryt manually everytime?

Sign in to reply to this post

Jason ByrnesWebAssist

If you use Dreamweaver to insert the file fields, it will change the enctype automatically.

If you manually add the files fields, you will need to manually change the enctype.

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