1
ng2-file-upload을 사용할 때 업로드하기 전에 이미지 크기를 조정하려면 어떻게해야합니까?ng2-file-upload를 사용하여 업로드하기 전에 이미지 크기 조정
순수 JavaScript에서는 Canvas에 이미지를로드 한 다음 크기를 조정합니다. ng2-file-upload
에 업로드 이벤트 파일을 사전 처리 할 수있는 이벤트가 있습니까? 어떤예요?
ng2-file-upload을 사용할 때 업로드하기 전에 이미지 크기를 조정하려면 어떻게해야합니까?ng2-file-upload를 사용하여 업로드하기 전에 이미지 크기 조정
순수 JavaScript에서는 Canvas에 이미지를로드 한 다음 크기를 조정합니다. ng2-file-upload
에 업로드 이벤트 파일을 사전 처리 할 수있는 이벤트가 있습니까? 어떤예요?
onAfterAddingFile
을 사용할 수 있습니다.
fileUploader: FileUploader = new FileUploader({....})
하고 파일 추가 할 때 onAfterAddingFile
가 발생합니다 :
this.fileUploader.onAfterAddingFile =() => {
console.log(this.fileUploader.queue)
// do stuff
};
을