I’m trying to use the API documented here to verify an audio file and then upload it. This is what my request looks like:
curl -X POST --header "Content-Type: multipart/form-data" --header "Accept: application/json" --header "cookie: .ROBLOSECURITY=REDACTED" --header "X-CSRF-TOKEN: REDACTED" -F file=@song.mp3 -F name=Song "https://publish.roblox.com/v1/audio/verify"
Response:
{"errors":[{"code":0,"message":"The request entity's media type 'multipart/form-data' is not supported for this resource."}]}
Per the documentation, the only allowed content types are application/json, text/json, and application/x-www-form-urlencoded. However, when I use any of those, I predictably get the response:
{"errors":[{"code":3,"message":"The request did not contain a file to be uploaded.","userFacingMessage":"Something went wrong"}]}
Not sure how to proceed. How can I upload an audio file if multipart/form-data is not allowed?
PS: ROBLOSECURITY and CSRF token are up to date (I tested with other endpoints and they work).