No support for Multiple files.
See original GitHub issueIf we have a requirement for multiple images upload this seems to fail.
//TODO--add
@Input() fileIndex = 0;
//TODO--update
private onChangesInputImage(changes: SimpleChanges): void {
if (changes.imageChangedEvent || changes.imageURL || changes.imageBase64 || changes.imageFile) {
this.reset();
}
if (changes.imageChangedEvent && this.isValidImageChangedEvent()) {
this.loadImageFile(this.imageChangedEvent.target.files[fileIndex]);
}
if (changes.imageURL && this.imageURL) {
this.loadImageFromURL(this.imageURL);
}
if (changes.imageBase64 && this.imageBase64) {
this.loadBase64Image(this.imageBase64);
}
if (changes.imageFile && this.imageFile) {
this.loadImageFile(this.imageFile);
}
}
```Just a suggestion.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Windows 10 - Unable to select multiple files.
Hi all. On occasions (at random) my PC decides not to allow me to select multiple files - as in no CTRL and...
Read more >Multiple file upload not supported - HCL support
The Commerce Struts 2 implementation does not support multiple file uploads via the same form on a page.
Read more >enable multiple file support? · Issue #254 - GitHub
@BigstickCarpet - the idea is to allow an undefined number of files to upload. You can set several individual parameters but that's not...
Read more >This site attempted to download multiple files automatically ...
When trying to download files from the Downloads tab, you get the message "This site attempted to download multiple files automatically" and no...
Read more >Known Limitations for Multiple Files - Box Support
There are a few limitations for multiple files in one signature request. Consult the list below before sending your first signature request.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

The cropper takes
imageChangedEvent,imageURL,imageBase64orimageFileas input. As you can see in the code you posted, when you set theimageChangedEventinput,loadImageFilewill be called withthis.imageChangedEvent.target.files[0]. When you set theimageFileinput, it will be called withthis.imageFile. So, if you want to show a cropper for each file, you can take yourimageChangedEvent.target.filesand loop over them, like you probably already do to know how many files there are. Then pass the file to the image cropper via theimageFileinput and voila:You can also process the image change event yourself and use the imageFile input to pass the image. That’s what happens within the image cropper as well.