Upload local files
Use create_upload for a local file that is too large to pass inline: a source file, artwork, a sound, or a cover or logo. It works the same in every framework major.
Compute the file's SHA-256 and byte length from the file you will upload:
shasum -a 256 AbyssalPredator.png wc -c < AbyssalPredator.pngCall
create_uploadwith the game'sgameDefinitionId, thesha256, thebyteLengthand atarget, such as{ type: "art", key: "AbyssalPredator" }.POST the unchanged file to the returned
uploadUrl:curl --data-binary @AbyssalPredator.png \ -H 'Content-Type: application/octet-stream' "$UPLOAD_URL"Read the answer as you read
upload_art's: checkisError, then readcontent[0].text.
Request one URL for each file. Keep the URL out of logs: it authorizes the upload by itself. create_upload's description lists the other targets, the limits, the expiry and when to request a new URL.