close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


Update Form with optional file upload with server behaviour

Thread began 8/24/2010 9:17 am by phebberd116714 | Last modified 8/24/2010 12:04 pm by Jason Byrnes | 488 views | 1 replies |


Update Form with optional file upload with server behaviour

I am trying to create an update record form that has an optional file field to upload an image.
The image is verified for file size and allowed extension (jpg, png etc).

I also need to automatically delete the original image if there is one and replace it with a new image if the user wants to.

The validation works, and I added 2 delete behaviours for the image, one for the full size image and one for the thumbnail. But I am probably trying to do the above in the wrong way.

My problem is that if an image is not uploaded, the form returns the server validation saying "You can only upload jpeg, jpg, gif or png files."

If an image already exists I still get the validation error message.

Attached is the page in question.

Any help will be greatly appreciated.

Attached Files
Sign in to reply to this post

Jason ByrnesWebAssist

In the File Extension And Number validations you need to check the Allow Blank Entry Boxes.

Right now they are not checked, so the e file extension must be jpg or gif.

See the tutorial for "How to apply Digital File Pro to DataAssist Insert and Update pages" on the data assist support page:

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





Ease of use


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