msg2santoshsagar / alife-file-to-base64

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

Maximum number of files #1

Open ghost opened 3 years ago

ghost commented 3 years ago

Hello Santosh,

I found this npm-package today and think it's just what I need.

I have one question: is there a way to set the maximum number of files to be selected? For my project I would like to limit it to one.

ghost commented 3 years ago

I think I found my answer in the sample-code: <input type="file" alife-file-to-base64 multiple (onFileChanged)="onFileChanges($event)" [(fileModel)]="files" [(rawFileModel)]="rawFiles" />

If I remove the 'multiple' part it accepts only one item.