Discussions
Cannot get file upload to work
12 months ago by Andrew Prokop
I call Generate Upload URI and receive this:
{"mediaName":"IMG_2640 (1).jpg","mediaContentType":"image/jpeg","mediaSize":7632,"mediaId":"feaaf9ef-6942-11ee-a296-df21261d0b41","uploadSignedUri":"/v1beta/media/feaaf9ef-6942-11ee-a296-df21261d0b41?ttl=1697148295644&signature=8C60330B78249B7543A493CDE1536BF61068B142B94B107656963DBA8373641F3A1DC19209BFF96908A55E6224A98EA71D941947EFCCF860C84786DE7665"}
I then call Upload Media using this URL:
I receive this in response:
data: {
type: 'https://developers.avayacloud.com/onecloud-ccaas/docs/error-handling#constraint-violation',
title: 'Bad Request',
status: 400,
detail: 'provided ttl or signature is not valid',
violations: [Array]
}
What am I doing incorrectly? Am I invoking the correct URL?