简体   繁体   中英

How can I upload a single file using ngx-dropzone in Angular?

I'm using ngx-dropzone in Angular to upload a profile picture with drop zone, but I want the user to upload only one file instead of multiple. Is there a way using ngx-dropzone?

Here you can see the demo:

https://stackblitz.com/edit/ngx-dropzone

You could just disable multiple files upload. Like code below.

<ngx-dropzone [multiple]="false" (change)="onSelect($event)"></ngx-dropzone>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM