Hello,
I am attempting to upload a JSON file from a new editor to the Media Library, but I am encountering a 500 error.
CURL:
curl 'https://asset-api.prismic.io/assets' \
-H 'Accept: */*' \
-H 'Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,bs;q=0.7,sr;q=0.6,hr;q=0.5,la;q=0.4' \
-H 'Connection: keep-alive' \
-H 'Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryRXErZEvwpMChmH7A' \
-H 'Cookie: ... \
-H 'Origin: https://element451.prismic.io' \
-H 'Referer: https://element451.prismic.io/' \
-H 'Sec-Fetch-Dest: empty' \
-H 'Sec-Fetch-Mode: cors' \
-H 'Sec-Fetch-Site: same-site' \
-H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36' \
-H 'repository: element451' \
-H 'sec-ch-ua: "Not A(Brand";v="99", "Google Chrome";v="121", "Chromium";v="121"' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'sec-ch-ua-platform: "macOS"' \
-H 'x-prismic-source: Wroom' \
--data-raw $'------WebKitFormBoundaryRXErZEvwpMChmH7A\r\nContent-Disposition: form-data; name="Communication - Animation JSON.json"; filename="Communication - Animation JSON.json"\r\nContent-Type: application/json\r\n\r\n\r\n------WebKitFormBoundaryRXErZEvwpMChmH7A--\r\n' \
--compressed
Could you please investigate and let me know what the issue might be?
Thanks,
Sava Lazic