Giter Site home page Giter Site logo

denfie / ng2-file-uploader Goto Github PK

View Code? Open in Web Editor NEW

This project forked from uniprank/ng2-file-uploader

0.0 2.0 0.0 2.21 MB

An angular2 uploader component and directive library for upload and preview uploading files.

License: MIT License

JavaScript 52.18% HTML 12.07% PHP 0.54% TypeScript 34.09% Shell 0.22% CSS 0.89%

ng2-file-uploader's Introduction

Angular 2 File Upload Build Status


DEPRECATED Version

There is a newer version ngx-file-uploader.

GIT: uniprank / ngx-file-uploader NPM: @uniprank/ngx-file-uploader

About

Angular 2 File Upload is a module for the @Angular-2 framework. Supports drag-n-drop upload, upload progress, validation filters and a file upload queue. It supports native HTML5 uploads. Works with any server side platform which supports standard HTML form uploads.

When files are selected or dropped into the component/directive, 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 {FileManager} and uploader options are used for this object. After, items in the queue (queue$) are ready for uploading.

Package managers

NPM

npm install @uniprank/ng2-file-uploader --save

You could find this module in npm like angular2 file uploader.

Module Dependency

Add import { FileUploaderModule } from '@uniprank/ng2-file-uploader'; to your module header:

@NgModule({
    declarations: [ ],
    imports: [
       FileUploaderModule
    ],
    exports: [ ]
})
export class ExampleModule {
}

Demos

  1. Simple example
  2. Advanced example
  3. FileDrop Component example

More Info

  1. Introduction
  2. Module API
  3. FAQ

Browser compatibility

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

Feature/Browser IE 8-9 IE10+ Firefox 28+ Chrome 38+ Safari 6+
<input type="file"/> + + + + +
<input type="file" multiple/> - + + + +
Drag-n-drop - + + + +
XHR transport (multipart,binary) - + + + +
AJAX headers - + + + +

ng2-file-uploader's People

Contributors

denfie avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.