Last active
December 16, 2015 00:59
-
-
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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