Skip to content

File Loader should have a method indicating if file load/upload is complete #1497

Open

Description

Are you reporting a feature request or a bug?

Feature request

Provide detailed reproduction steps (if any)

The fileLoader type should have methods indicating whether load/upload is complete.

Use case is that you want to reuse loader request in multiple instances (e.g. for multiple widgets). Currently the only way to know that the request has ended is to listen to a proper events, but once the request is done events are no longer fired. Thus if you bound listener to uploaded event after uploaded is done you will never get notified.

Having the isUploaded() method instead you would check whether it is already uplaoded during widget creation. If true you access the response synchronously, if not you bind to uploaded event as you'd normally do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    changelog:apiA changelog entry should be put in the API section of the changelog.A changelog entry should be put in the API section of the changelog.plugin:filetoolsThe plugin which probably causes the issue.The plugin which probably causes the issue.status:confirmedAn issue confirmed by the development team.An issue confirmed by the development team.type:featureA feature request.A feature request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions