zefoy / ngx-dropzone-wrapper

Angular wrapper library for Dropzone
MIT License
174 stars 51 forks source link

Setting already uploaded files from S3 to Dropzone Wrapper #119

Closed VigneshVaidyanathan closed 6 years ago

VigneshVaidyanathan commented 6 years ago

Hello,

I am trying to retrieve the file content from AWS S3 which comes as a U8IntArray. I want to bind this uploaded file to the list of added files in the Dropzone wrapper. I have created a dropzone directive

@ViewChild(DropzoneDirective) directiveRef?: DropzoneDirective;

I have tried to call the add event and complete event but it doesnt show it too. const mockFile = { name: 'logo.jpg', size: 76478}; this.directiveRef.DZ_ADDEDFILE.emit(mockFile); this.directiveRef.DZ_THUMBNAIL.emit(this.settings.companyDetails.logoFilePath); this.directiveRef.DZ_COMPLETE.emit(mockFile);

I am not able to bind the file. I am using this in ngAfterViewInit so the dropzone is also available to work with.

Please let me know how its done for file obtained from AWS S3 and show it in the dropzone.

Thanks a lot

sconix commented 6 years ago

Duplicate of #99