Cannot read property 'options' of undefined #934

Open
opened 2017-11-30 10:29:21 +00:00 by emrealparslan93 · 2 comments
emrealparslan93 commented 2017-11-30 10:29:21 +00:00 (Migrated from github.com)

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 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"
erperejildo commented 2018-03-21 15:49:26 +00:00 (Migrated from github.com)

I get same thing but having that property

I get same thing but having that property
galvakojis commented 2019-01-14 13:29:01 +00:00 (Migrated from github.com)

maybe your uploader is missing this line?
public uploader:FileUploader = new FileUploader({url: URL});

maybe your uploader is missing this line? `public uploader:FileUploader = new FileUploader({url: URL});`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dc/ng2-file-upload#934