Skip to content

FileUploader with uploadOnChange='true' and securityTokenAvailable problem #4349

@jvanattedev

Description

@jvanattedev

What is the issue and how can we reproduce it?

When using the FileUploader with uploadOnChange='true' will immediately start the upload. In the event 'uploadStart' you usually set some parameters like CSRFToken and other headers. Wanting to follow best practices, I used the asynchronous 'securityTokenAvailable' method which resolves a Promise when the CSRF Token is received.

If you synchronously get the CSRF Token, there is no issue. If you use the asynchronous method, a request will be launched before you receive the CSRF Token.

I don't think I can get you a reproducible project, since it requires access to a service that allows file uploads. Any ideas are welcome.

SAPUI5 1.120.38

Which OpenUI5 version is your project targeting?

1.120.38

Is the issue device- or browser-specific?

no

Confirmation

  • I have searched the existing issues and reviewed the relevant documentation as well as the API reference.
  • I am not disclosing any internal or sensitive information.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions