Open dreamid27 opened 6 years ago
Just put it in your config block, then write your function normally in your component
config: DropzoneConfigInterface = {
// Change this to your upload POST address:
url: this.setUrl(),
maxFilesize: 50,
acceptedFiles: 'image/*',
method: 'POST',
uploadMultiple: false,
accept: (file, done) => {
this.onAccept(file, done);
}
};
onAccept(file: any, done: Function) {
console.log('Fetching upload policy and url and stuff');
this.apiService.requestData('getmypolicyurl/' + file.name)
.subscribe((result) => {
console.log(result);
done();
});
}
Hi, thank for your awesome plugin.
but I need help, how implement this in angular app ?
https://github.com/enyo/dropzone/wiki/FAQ#reject-images-based-on-image-dimensions
i'm try with
but not working. you have solution or did i miss something ?
i try to call emit, it's working, but it's not.