How to upload file together with other form data?


I have the need to create such an item in the articles database:
The article item has fields such as:title,body,etc,and also,it has an
imgUrl field which indicates the image coresponding to the article.
And now it is necessary to create the article item with all the fields
filled at one time,then I have to submit the data of the fields except
for the imgUrl and the data of a file upload form,how can I do it


Let me explain it more clear.
The form elements include other fields except for the input file will be
submit via ajax,which can not be used as file upload.If i use some
solutions such as form_remote_upload or Upload Progress,how can i
combine the two submission together after i click the “submit” button