saschagottfried / webapi-fileupload

Updated/Refactored version - Web API File Uploading (Desktop and Web client)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

File uploading is one of the most common tasks all developers have to deal with, at some point of their application development cycle. For example, Web applications (such as social networks) usually require users to upload a profile picture during registration or in the case of desktop ones, users may required to upload private documents.

This post will show you how to upload multipart/form-data files using Web API with both Web and Desktop clients. More particular here’s what we gonna see:

  • Web API File Upload Controller: Create an action for Uploading multipart-form data
  • Web client: Create an AngularJS web client to upload multiple files at once using the Angular File Upload module
  • Desktop client: Create an Windows Form client to upload multiple files using HttpClient

Source

Open Tasks

  • Add SSL
  • Protect API using OpenID
  • Separate code handling file upload and generating a DTO (class FileUploadResult) from request processing / controller

Nice

Hypermedia API

Upload Files to Azure Blobs

Restful interface to ressources/collections

Authentication

OpenID Connect

Security filters

About

Updated/Refactored version - Web API File Uploading (Desktop and Web client)

License:MIT License


Languages

Language:C# 85.5%Language:JavaScript 7.2%Language:HTML 5.3%Language:CSS 1.5%Language:ASP 0.5%