How to upload file with web-api

hughswan

New Member
Client side code:\[code\]<form action="api/MyAPI" method="post" enctype="multipart/form-data"> <label for="somefile">File</label> <input name="somefile" type="file" /> <input type="submit" value="http://stackoverflow.com/questions/13736548/Submit" /> </form>\[/code\]And how to process upload file with mvc web-api,have some sample code?
 
Back
Top