How can I resize image before upload when using ng2-file-upload?
In pure JavaScript I'd load image to Canvas, then resize. Does ng2-file-upload
have hany events allowing to pre-process uploades files? Any example?
How can I resize image before upload when using ng2-file-upload?
In pure JavaScript I'd load image to Canvas, then resize. Does ng2-file-upload
have hany events allowing to pre-process uploades files? Any example?
Copyright © 2021 Jogjafile Inc.
You have the possibility to use
onAfterAddingFile
.and the
onAfterAddingFile
will fire when you add a file: