title: Upload file using WebApi, ajax
body: <p>I want to upload file using a WebApi by making an ajax call and the file will save into database. I tried the code given in the 
  <a href="https://stackoverflow.com/questions/17177237/webapi-ajax-formdata-upload-with-extra-parameters"><strong><em>this link</em></strong></a>. Here, it is saved the received data to hard drive as a file with no extension specified but I want to do something like when I'm saving the file to Database I also want to save the file name and the extension cause later if I need to download the file I can provide the file name and extension with it. And in the link the file is saved to hard drive as a file but is there any way that I can directly save the file to DB.</p>