Hi @joeBumbaca
Hereby the request; I did remove the body as it just contained a lot of numbers.
{
"request": {
"url": "https://www.url.com/wp-json/wp/v2/media",
"method": "POST",
"body": {
"type": "Buffer",
"data": [
]
},
"headers": {
"Content-Length": 5782,
"User-Agent": "Retool/2.0 (+https://docs.tryretool.com/docs/apis)",
"Content-Type": "application/pdf",
"Content-Disposition": "attachment; filename=TestSolarPasArtikel.pdf",
"Authorization": "---sanitized---",
"ot-baggage-requestId": "undefined",
"x-datadog-trace-id": "1120213936518136228",
"x-datadog-parent-id": "3733644229568326668",
"x-datadog-sampling-priority": "-1",
"traceparent": "00-00000000000000000f8bcca3de9b01a4-33d091a5251b6c0c-00",
"tracestate": "dd=s:-1",
"X-Retool-Forwarded-For": "84.80.67.20"
}
},
"response": {
"data": {
"code": "rest_upload_invalid_disposition",
"message": "Ongeldige Content-Disposition opgegeven. Content-Disposition moet geformatteerd worden als `attachment; filename=\"image.png\"` of iets vergelijkbaars.",
"data": {
"status": 400
}
},
"headers": {
"connection": [
"Keep-Alive"
],
"keep-alive": [
"timeout=5, max=100"
],
"x-powered-by": [
"PHP/8.2.11, PleskLin, PleskLin, PleskLin"
],
"set-cookie": [
"PHPSESSID=mup5co2nqrfo8m7ba5o6s5c0s3; path=/; secure"
],
"content-type": [
"application/json; charset=UTF-8"
],
"x-robots-tag": [
"noindex"
],
"link": [
"<https://www.solar4all.eu/wp-json/>; rel=\"https://api.w.org/\""
],
"x-content-type-options": [
"nosniff"
],
"access-control-expose-headers": [
"X-WP-Total, X-WP-TotalPages, Link"
],
"access-control-allow-headers": [
"Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type"
],
"allow": [
"GET, POST"
],
"expires": [
"Wed, 11 Jan 1984 05:00:00 GMT"
],
"cache-control": [
"no-cache, must-revalidate, max-age=0, no-store, private"
],
"content-length": [
"228"
],
"date": [
"Thu, 19 Oct 2023 06:25:55 GMT"
],
"server": [
"LiteSpeed"
],
"vary": [
"Accept-Encoding"
],
"alt-svc": [
"h3=\":443\"; ma=2592000, h3-29=\":443\"; ma=2592000, h3-Q050=\":443\"; ma=2592000, h3-Q046=\":443\"; ma=2592000, h3-Q043=\":443\"; ma=2592000, quic=\":443\"; ma=2592000; v=\"43,46\""
]
},
"status": 400,
"statusText": "Bad Request"
}
}