Angular Version:
Angular file upload Demo
Visit
ng-file-upload
on github
+ edit upload html
reset to default
Upload on form submit
Username:
*required
Profile Picture:
*required
Submit
Upload Successful
Upload right away
Attach an Image or PDF
Attach Any File
File Drop not available
Drop Images or PDFs
click to select
Play with attributes
ngf-accept (accept/reject file model):
accept (for select browser dependent):
ngf-capture (for mobile):
ngf-min-size:
ngf-max-size:
ngf-multiple (allow multiple files)
ng-disabled
ngf-allow-dir (allow directory drop Chrome only)
Select File
or Drop
Preview image/audio/video:
Rejected file: {{f.name}} - size: {{f.size}}B - type: {{f.type}}
{{f.progress}}%
Abort
{{f.name}} - size: {{f.size}}B - type: {{f.type}}
details
{{f.result}}
file name: {{item.name}}
name: {{item.fieldName}}
size on the serve: {{item.size}}
value: {{item.value}}
request headers: {{f.result.requestHeaders}}
{{errorMsg}}
How to upload to the server:
$upload.upload(): multipart/form-data upload cross browser
$upload.http(): binary content with file's Content-Type
Can be used to upload files directory into
CouchDB
,
imgur
, etc... without multipart form data (HTML5 FileReader browsers only)
Amazon S3 bucket upload
Provide S3 upload parameters.
Click here for detailed documentation
S3 upload url including bucket name:
AWSAccessKeyId:
acl (private or public):
success_action_redirect:
policy:
signature:
S3 Policy signing helper (Optional)
If you don't have your policy and signature you can use this tool to generate them by providing these two fields and clicking on sign
AWS Secret Key:
JSON policy:
Sign
Return server error with http code:
and message:
donate
Feedback/Issues
Last update: 2015-04-23