Last post May 10, 2017 06:02 AM by Chris Zhao
May 09, 2017 10:26 AM|behnam.n68|LINK
Hi, i wanna write an api controller to upload file in a directory like "~/Files/Image/"
and use this api to send file (video or image) from other applications, for example and android or ios app
how should i implement this api?
May 09, 2017 11:58 AM|kaushalparik27|LINK
Basically it will be a post type api method receiving Request.content and file name to save on server. Here are good reads on similar topic:
May 10, 2017 06:02 AM|Chris Zhao|LINK
Below you will find some tutorials show how to upload files to a Web API, it will help you understand Web API
Uploading Image To Server Using Web API 2.0
Sending HTML Form Data in ASP.NET Web API: File Upload and Multipart MIME