msg2santoshsagar / alife-file-to-base64

A simple library to map input file base 64 to modal
MIT License
2 stars 0 forks source link

Alife File To Base64

Angular simple yet powerfull library to convert file to base64

Install file to base64 from NPM :

Run npm install alife-file-to-base64 --save

Add Dependecy to your project

import { AlifeFileToBase64Module } from 'alife-file-to-base64';

@NgModule({
  declarations: [
  ],
  imports: [
    AlifeFileToBase64Module
  ],
  providers: [],
  bootstrap: [AppComponent]
})

Syntax

<input type="file" alife-file-to-base64 multiple (onFileChanged)="onFileChanges($event)" [(fileModel)]="files" [(rawFileModel)]="rawFiles" />

Events

Author

Santosh Sagar

License

This module is released under the permissive MIT license