close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Cannot upload file while inserting record to database

Thread began 6/05/2010 11:00 am by cal114936 | Last modified 6/07/2010 1:48 pm by Jason Byrnes | 2357 views | 5 replies |

cal114936Beta Tester

Cannot upload file while inserting record to database

Using Data Assist, I created forms to insert and update a database. From the insert page I need to be able to upload files as well. I applied the file manipulation/upload to content_Insert.php, but it won't upload. I created a test page upload.php with only the upload and it works fine. I have attached the file.

Thanks,

Jack

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

anonymous

It looks like you have multiple image/file uploads on one page but I only see on Digital File Pro behavior. You will need to create upload behaviors for each file... then you will also be able to generate the server file names to store in the database.

Regards,

Brian

Sign in to reply to this post

Jason ByrnesWebAssist

also, the forms encoding type must be set to multipart/form-data.

change the form tag:

php:
<form  action="content_Insert.php" method="post" name="WADAInsertForm" id="WADAInsertForm">



to:

php:
<form  action="content_Insert.php" method="post" enctype="multipart/form-data" name="WADAInsertForm" id="WADAInsertForm">
Sign in to reply to this post

cal114936Beta Tester

Thanks, Jason. It worked. I went in and added all the other uploads. Thanks again.

Sign in to reply to this post

carleneBeta Tester

Hi There!

I'm having the same problem. I followed the instructions on this page: dfp_da_insert_update_ht.pdf

All of the other form inserts are working but the files won't upload. Could it be a server/database permission problem? I'll attach my insert page here.

Thanks!

Carlene

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

Jason ByrnesWebAssist

it could be a permission problem, make sure the permissions on the upload directory "images/sitelogos/" grant write permissions to all users.

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