Skip to content

Instantly share code, notes, and snippets.

@haohello
Last active December 16, 2015 00:59
Show Gist options
  • Save haohello/5351668 to your computer and use it in GitHub Desktop.
Save haohello/5351668 to your computer and use it in GitHub Desktop.
Uploading a file using asp.net mvc web api [please refer to this url] (http://blogs.msdn.com/b/henrikn/archive/2012/03/01/file-upload-and-asp-net-web-api.aspx)
<!DOCTYPE HTML>
<html>
<head>
<title>HTML5 Multiple File Upload Sample</title>
</head>
<body>
<form action="http://localhost:8080/api/upload" enctype="multipart/form-data" method="POST">
What is your name?
<input name="submitter" size="40" type="text"><br>
What files are you uploading?
<input name="data" type=file>
<br>
<input type="submit" />
</form>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment