There is an issue where ${baseURL} may be called twice when uploading through tus.
The scenario can be reproduced as follows:
Run ./filebrowser --baseUrl baseUrl
When attempting to upload, a 404 error occurs as the POST request is invoked with baseUrl/url/baseUrl/url
However, there is no redundant call in the subsequent HEAD request
This seems to happen because, as the const tusEndpoint of constants.js is transferred to the fetchURL of utils.js, the predefined baseURL is added once more to the fetch
To resolve this, the baseURL is removed before calling fetchURL if it already exists.
Clone from https://github.com/filebrowser/filebrowser/pull/2579
There is an issue where ${baseURL} may be called twice when uploading through tus.
The scenario can be reproduced as follows:
Run ./filebrowser --baseUrl baseUrl When attempting to upload, a 404 error occurs as the POST request is invoked with baseUrl/url/baseUrl/url However, there is no redundant call in the subsequent HEAD request This seems to happen because, as the const tusEndpoint of constants.js is transferred to the fetchURL of utils.js, the predefined baseURL is added once more to the fetch
To resolve this, the baseURL is removed before calling fetchURL if it already exists.
For more details, please refer to the following issue. (https://github.com/filebrowser/filebrowser/issues/2581)