A custom directive that gives you a button when clicked prompt for the file and uses XHR2 to post the file to the server using the action attribute as the endpoint.
When complete, the directive fires the function set to the complete attribute.
The server posts the file under the field uploadFile.
File issues on github
Still lots to do here, we can add progress tracking and other attributes to make the button control extremely robust. Suggestion and Pull Requests are welcome
If you need compatibility for IE 8 and below, you may want
- Tom Wilson twilson63