Detect Remote Filename
POST
/utilities/downloads/detect-filename
const url = 'https://sylve.lan:8181/api/utilities/downloads/detect-filename';const options = { method: 'POST', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"ignoreTLS":true,"url":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://sylve.lan:8181/api/utilities/downloads/detect-filename \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "ignoreTLS": true, "url": "example" }'Best-effort HEAD probe that reports the filename an HTTP(S) source advertises through Content-Disposition; an empty filename means the source named nothing
Authorizations
Section titled “Authorizations”Request Body
Section titled “Request Body”Filename detection request
Media typeapplication/json
object
ignoreTLS
boolean
url
required
string
Examplegenerated
{ "ignoreTLS": true, "url": "example"}Responses
Section titled “Responses”Probe completed; filename may be empty
Media typeapplication/json
object
data
object
filename
string
error
string
message
string
status
string
Examplegenerated
{ "data": { "filename": "example" }, "error": "example", "message": "example", "status": "example"}Bad Request
Media typeapplication/json
object
data
error
string
message
string
status
string
Examplegenerated
{ "data": "example", "error": "example", "message": "example", "status": "example"}Unauthorized
Media typeapplication/json
object
data
error
string
message
string
status
string
Examplegenerated
{ "data": "example", "error": "example", "message": "example", "status": "example"}Administrator access required
Media typeapplication/json
object
data
error
string
message
string
status
string
Examplegenerated
{ "data": "example", "error": "example", "message": "example", "status": "example"}Request body too large
Media typeapplication/json
object
data
error
string
message
string
status
string
Examplegenerated
{ "data": "example", "error": "example", "message": "example", "status": "example"}Internal Server Error
Media typeapplication/json
object
data
error
string
message
string
status
string
Examplegenerated
{ "data": "example", "error": "example", "message": "example", "status": "example"}