Socket
Socket
Sign inDemoInstall

angular-file-upload

Package Overview
Dependencies
0
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    angular-file-upload

Angular File Upload is a module for the AngularJS framework


Version published
Weekly downloads
20K
decreased by-12.56%
Maintainers
1
Install size
407 kB
Created
Weekly downloads
 

Readme

Source

Angular File Upload


About

Angular File Upload is a module for the AngularJS framework. Supports drag-n-drop upload, upload progress, validation filters and a file upload queue. It supports native HTML5 uploads, but degrades to a legacy iframe upload method for older browsers. Works with any server side platform which supports standard HTML form uploads.

When files are selected or dropped into the component, one or more filters are applied. Files which pass all filters are added to the queue. When file is added to the queue, for him is created instance of {FileItem} and uploader options are copied into this object. After, items in the queue (FileItems) are ready for uploading.

Package managers

Bower

bower install angular-file-upload

You could find this module in bower like angular file upload.

NPM

npm install angular-file-upload

You could find this module in npm like angular file upload.

Module Dependency

Add 'angularFileUpload' to your module declaration:

var app = angular.module('my-app', [
    'angularFileUpload'
]);

Demos

  1. Simple example
  2. Uploads only images (with canvas preview)
  3. Without bootstrap example

More Info

  1. Introduction
  2. Module API
  3. FAQ
  4. Migrate from 0.x.x to 1.x.x
  5. RubyGem

Browser compatibility

This module uses the feature detection pattern for adaptation its behaviour: fd1, fd2.

You could check out features of target browsers using http://caniuse.com/. For example, the File API feature.

Feature/BrowserIE 8-9IE10+Firefox 28+Chrome 38+Safari 6+
<input type="file"/>+++++
<input type="file" multiple/>-++++
Drag-n-drop-++++
Iframe transport (only for old browsers)+++++
XHR transport (multipart,binary)-++++
An image preview via Canvas (not built-in)-++++
AJAX headers-++++

FAQs

Last updated on 29 Nov 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc