Advice about upload form

I have Article model that has_many images.

The edit page for an article has two different forms, one for the article itself and another for uploading images. The upload-form uploads an image and redirects to the edit page. I did this to make it easy to make links to images in the text of the article.

The problem of this design is when a user enters some info in the article form and doesn't submit the form, if the user subsequently uploads an images the entered info gets lost.

I've thought of a couple of solutions to this problem:

Upload the images via AJAX