image is not shown in image-cropper when insert image using ng2-file-upload ng2FileDrop #1146
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
`<div ng2FileDrop [ngClass]="{'another-file-over-class': hasAnotherDropZoneOver (onFileDrop)="dropped($event)" [uploader]="uploader">
<input type="file" ng2FileSelect [uploader]="uploader"
(change)="onFileSelected($event)" accept="image/png,image/gif,image/jpeg"
#selectfile />Choose File
public onFileSelected(event)
{
// its worked
this.imageChangedEvent = event;
}
dropped(event)
{
// its not worked
this.imageChangedEvent = event;
}`
yeah i done that. i pass the event like as {target:{files:event}} after get the file drop event. so it will works because you use the input like event.target.event[0] so i send like this format