Skip to content

Possibility of (fileSelected) event on ngxDragAndDrop #87

Description

@mrklika

Hi, is there any possibility of adding some helper outputs like fileSelected on ngxDragAndDrop?

Assume that I have one form with 2 instances of fileSelect:

       <div
        class="my-drop-zone"
        ngxDragAndDrop
        *ngxInputFile>
        <span class="__drop-text">Click to select...</span>
      </div>
       <div
        class="my-drop-zone"
        ngxDragAndDrop
        *ngxInputFile>
        <span class="__drop-text">Click to select...</span>
      </div>

and I want to store my files in the file queue by keys like:

coverImage: [ FILE ]

gallery: [ FILE, FILE, FILE ]

only available available this._uploader.onAddToQueue$ listens to queue without the option to focus on a single file drop or select.

Would be great to have something like:

       <div
        class="my-drop-zone"
        ngxDragAndDrop
        *ngxInputFile
       (fileSelected)="addToQueue({ key: 'coverImage', file: $event })">
        <span class="__drop-text">Click to select...</span>
      </div>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions