Skip to content
Alex edited this page Jul 20, 2014 · 8 revisions

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 and are ready to be uploaded.

Requires

  • The AngularJS framework
  • ES5 (Array.indexOf, Array.forEach, Array.filter, Array.every, Function.bind, Date.now) A shim is provided for older browsers.

Includes

Directives

  • nvFileSelect. Should be applied to <input type="file" />. The selected files are added to the uploaded queue if they have passed the filters.
  • nvFileDrop. Set up a drop area. Usually applied to the entire document. Caught files are added to the uploaded queue if they have passed the filters.
  • nvFileOver. Should be applied to the element which will change class when files are about to be placed on the drop area. By default it adds the class nv-file-over but a different class can be specified with the parameter attribute over-class="className".

Services

  • FileUploader. Manages the upload queue and the uploading of files.
Clone this wiki locally