bbc/ng-file-model

Name: ng-file-model

Owner: BBC

Description: Angular File Model is a directive for angularjs to help you make a model for input file and you can send it to sever for next step.

Forked from: mistralworks/ng-file-model

Created: 2016-10-26 08:46:31.0

Updated: 2016-11-23 12:06:56.0

Pushed: 2016-10-26 09:07:04.0

Homepage: null

Size: 499

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

ng-file-model


Bower version

Angular File Model is a directive for angularjs to help you make a model for input file and you can send it to sever for next step.

Installation
Bower

> bower install ng-file-model --save

npm

> npm install ng-file-model --save

Model

Result or return are :

Usage

on application : angular.module("myApp", ["ng-file-model"])

on html : <input type="file" ng-file-model="testFile" />

Result :

{
    "lastModified": 1438583972000,
    "lastModifiedDate": "2015-08-03T06:39:32.000Z",
    "name": "gitignore_global.txt",
    "size": 236,
    "type": "text/plain",
    "data": "data:text/plain;base64,DQojaWdub3JlIHRodW1ibmFpbHMgY3JlYXRlZCBieSB3aW5kb3dz?xoDQoqLmJhaw0KKi5jYWNoZQ0KKi5pbGsNCioubG9nDQoqLmRsbA0KKi5saWINCiouc2JyDQo="
}
Thanks to

Created By Mistral Works | 2015


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.