Recently the company let do a document upload function, function Description narrative is probably such a drop
Book name, book pricing, book cover picture (need to upload), document content (need to upload), and other related descriptive narrative information.
My design table A includes the above fields and originally designed the document upload. And content are saved on the same page.
This later encountered a problem may be users just want to change the description of the document described the relevant information. But I had to change it.
The entire form form is edited and submitted, and the two documents that are uploaded are not. displayed in the change.
The design was so bad that it was later divided into two parts. Part of the document related to the definition of the submission, after the submission, after this record there is a upload related documents, and the cover button. Link to the document upload page. This document upload page can be used Ajax, the document uploaded to the server, the change is the same operation.
Design of Java document uploading problem