Cannot read property 'options' of undefined #934
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?
I don't want to use property 'uploader' in my ng2FileDrop directive.
Here is how I want to use it:
<div ng2FileDrop (onFileDrop)="onFileDrop($event)" class="image-section-drop-zone"></div>But if I remove [uploader]="uploader" property, it gives me TypeError: Cannot read property 'options' of undefined.
How can I achieve that?
Version: "ng2-file-upload": "^1.3.0"
I get same thing but having that property
maybe your uploader is missing this line?
public uploader:FileUploader = new FileUploader({url: URL});