Incorrect API Response for File Upload
Closed this issue · 4 comments
Description:
When uploading a file using the API, the response includes the following fields: Url
, HotlinkUrl
, and GenericHotlinkUrl
. Each of these fields contains different generic values, but none of them include the file ID.
Expected Behavior:
The response should contain correct Url
and HotlinkUrl
with ID already present.
GenericHotlinkUrl
should not be provided
Actual Behavior:
The response provides:
"Url": "https://domain/d?id=",
"HotlinkUrl": "https://domain/hotlink/",
"GenericHotlinkUrl": "https://domain/downloadFile?id="
All of these fields contain different generic values, but they do not include the file ID.
Screenshot:
There is also a FileInfo
field tagged HotlinkId
that always has an empty value. I don't think it is necessary
This has been already changed in 6beabde, but is not released to the stable version yet. They are required for client-side JavaScript.
Thanks, do you have any forecast on the release date containing this change? I need to change my scripts contacting the API prior to that update.
Most likely in 1-2 weeks. If you are using Docker, you can already use the image latest-dev
, it should be stable enough for daily use.