title: How upload a file with AngularJS, asp.net web API and fileupload saving to SQL
body: <p>I'm from a web forms background and learning angular with web API in C# and I have working site for adding/editing and deleting an object record.  I know want to move on to more complex problems but struggling to know where to start!</p>
  
  <p>The nearest I've found is this post which seems quite good but limited to images but struggling to follow as its a bit confusing knowing which responses work.
  <a href="https://stackoverflow.com/questions/22905227/angularjs-net-webapi-upload-image-and-save-to-database-mssql">AngularJS .Net WebAPI Upload image and save to database (MSSQL)</a>.</p>
  
  <p>What I would like to do very simply is have an Object with properties Name (string) and Logo (Logo stored in db binary field).  From and angular view save the object (calling route of my Web API) including validating the name and saving an image and if it already has one, display the current image.</p>
  
  <p>If anyone knows of a good simple example that will achieve that and ideally will work for any kind of file as some uploads in my site might be PDFs for example I would be hugely grateful.</p>