attachment_fu and validations

Hi

I have a model with the attachment_fu data and two other fields (title and description). My form contains the three fields: title, description, and uploaded_data.

When I submit a form with a valid uploaded file and invalid title or description the errors are displayed correctly, however the valid uploaded picture is also removed. Next the user has to select and upload the picture all over again.

Is there a way to avoid this and have the picture saved? So he can enter another picture just if he wants to change it.

If validations fail record will not be saved. That’s how it works. Also provide instructions for the user in the form to make them enter valid values.