Sharing Top Content from the Angular-sphere.

xee-file-picker (1.0.0): AngularJs directive for `<input type=file>` using custom html element(…

  • Often times, every time you need to have a customized file picker element in your forms, this directive lets you have that ease.
  • It returns the chosen file in a scope property and also a data url for the file to display or play(in case of audio/video file) on the go.

AngularJs directive for <input type=file> using custom html element(s).

@nodenpm: xee-file-picker (1.0.0): AngularJs directive for `<input type=file>` using custom html element(…

html

js controller

Often times, every time you need to have a customized file picker element in your forms, this directive lets you have that ease. It returns the chosen file in a scope property and also a data url for the file to display or play(in case of audio/video file) on the go.

(I usually bundle my packages under ‘xee’ module so that if the application is using multiple packages of xee, the dependencies remain simple

Smart?)

(default: ‘*’ // allow all files) an array of allowed mime types. e.g [‘jpg’, ‘png’] or a string ‘mp4’.

(default: 1024) 1KB in bytes.

(default: 8e+6) 8MB in bytes.

Following events are triggered on $rootScope.

If mime type of file chosen is not allowed.

If chosen file is not with in the default or set size limits (see Options).

MIT

Private packages, team management tools, and powerful integrations. Get started with npm Orgs

xee-file-picker

Comments are closed, but trackbacks and pingbacks are open.