Skip to main content
Participating Frequently
July 14, 2009
Question

Insert Record Behaviour fails...

  • July 14, 2009
  • 1 reply
  • 1082 views

If I use a File Field in a form and an Insert Record Behaviour, the page computes for a while and then reloads itself as an empty page (no form fields filled in.)  If I change the File Field to a Text Field, it works okay (inserts the record and goes the the page specified in the Insert Record behaviour.

Any help?

This topic has been closed for replies.

1 reply

Participating Frequently
July 14, 2009

Not sure what you mean by File Field. Are you trying to upload a file to the server to insert into the database? If so, do you actually have an upload script that is working? Also, inserting files into the database is usually not the preferred way to do things - better to store a path to the file instead. Sorry if I am misunderstanding your problem. Please clarify if that is the case.

Participating Frequently
July 14, 2009

One of the choices when you are building a form is to go to Insert >

Form > File Field. It gives you a Browse button next the the field to

select a file name. I am not storing the file in a database, I am

storing the name of the file. I have a separate script that uploads the

file that works fine. This same page has been working well for a long

time, but it was developed with Dreamweaver CS3. The problem began when

I edited the page with Dreamweaver CS4.

Thanks for the quick response.

Bill

July 14, 2009

If you are using file field, make sure u set the form properties for enctype as 'multipart/form-data'.