Upload a media object (image/attachment) to R2-backed storage.
curl --request POST \
--url https://tryno.io/api/media \
--header 'Content-Type: multipart/form-data'const form = new FormData();
const options = {method: 'POST'};
options.body = form;
fetch('https://tryno.io/api/media', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://tryno.io/api/media"
payload = "-----011000010111000001101001\r\n-----011000010111000001101001--"
response = requests.post(url, data=payload)
print(response.text){
"key": "<string>",
"url": "<string>"
}media
Upload a media object (image/attachment) to R2-backed storage.
POST
/
media
Upload a media object (image/attachment) to R2-backed storage.
curl --request POST \
--url https://tryno.io/api/media \
--header 'Content-Type: multipart/form-data'const form = new FormData();
const options = {method: 'POST'};
options.body = form;
fetch('https://tryno.io/api/media', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://tryno.io/api/media"
payload = "-----011000010111000001101001\r\n-----011000010111000001101001--"
response = requests.post(url, data=payload)
print(response.text){
"key": "<string>",
"url": "<string>"
}
