Angular Version:
Angular file upload Demo
Visit
angular-file-upload
on github
http method:
post
put
How to upload:
Multupart/form-data upload using $upload.upload() service cross browser
File binary content with the file type as Content-Type header using $upload.http() service
The second option could be used to upload files to
CouchDB
,
imgur
, etc... for HTML5 FileReader browsers.
myModel:
model object to be sent with the file.
choose a single file:
or multiple files:
or drop files here
HTML5 Drop File is not supported on this browser
Upload right away
{{errorMsg}}
Progress:
{{($index + 1) + '.'}}
Start
{{progress[$index]}}%
Abort
{{f.name}} - size: {{f.size}}B - type: {{f.type}}
Server Response:
file name: {{item.name}}
name: {{item.fieldName}}
size on the serve: {{item.size}}
value: {{item.value}}
request headers: {{result.requestHeaders}}
Last update: 2014-05-08