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