-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Delete Image Error #208
Comments
Yes same issue here... I don't know it's good practice or not (of course not :) ) but it solved my issue by commenting out this line in ImageUploadComponent.prototype.deleteFile
|
@majidnk01 Obviously its not a good approach, when you are working remote. It will solve my current development problem but will cause problem for others. |
Same issue on Angular 6 with your last version. |
I found a workaround for this issue, just call contents of ...
@ViewChild('logoUploader') logoUploader: ImageUploadComponent;
...
// this.logoUploader.deleteAll();
this.logoUploader.files.forEach(f => this.logoUploader.removed.emit(f));
this.logoUploader.files = [];
this.logoUploader.fileCounter = 0;
... |
the same here |
I've the same problem. Think had resolved this problem but no published in the npm yet. |
Publish it on npm, please |
@aberezkin , @UncleDave Can you please publish this update? |
I'm having the same issue and it hasn't been published on npm yet! |
Same here +1 however only when the |
The problem is the parameter [max]="xxxxx" onBeforeUpload = (metadata: UploadMetadata) => { |
Publish it on npm, please |
facing same issue. Please update ! |
And after one picture removing, If we select new picture nothings happens afterwards. |
+1 |
When Image Limit completed, then only the clear button is visible. If I remove all the images or A single image, I'm getting an error from the component. Also, delete event is not fired.
UploadDocumentComponent.html:18 ERROR TypeError: Cannot read property 'nativeElement' of undefined at ImageUploadComponent.deleteAll (image-upload.component.js:85) at Object.eval [as handleEvent] (ImageUploadComponent.html:27) at handleEvent (core.js:13589) at callWithDebugContext (core.js:15098) at Object.debugHandleEvent [as handleEvent] (core.js:14685) at dispatchEvent (core.js:10004) at eval (core.js:10629) at HTMLButtonElement.eval (platform-browser.js:2628) at ZoneDelegate.invokeTask (zone.js:421) at Object.onInvokeTask (core.js:4751)
The text was updated successfully, but these errors were encountered: