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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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.
> bower install ng-file-model --save
> npm install ng-file-model --save
Result or return are :
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="
}
Created By Mistral Works | 2015