Hi
i need file upload with data in post web api json format in web api 1.0
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Bhuvanesh MohankumarPosted Apr 14, 2017, 9:54 AM
http://stackoverflow.com/questions/3938569/how-do-i-upload-a-file-with-metadata-using-a-rest-web-service
You basically have three choices:
multipart/form-dataPOST, and return an ID to the client. The client then sends the metadata with the ID, and the server re-associates the file and the metadata.