diff --git a/src/routes/object/getSignedURL.ts b/src/routes/object/getSignedURL.ts index b71b8896..1ecaae8f 100644 --- a/src/routes/object/getSignedURL.ts +++ b/src/routes/object/getSignedURL.ts @@ -82,7 +82,7 @@ export default async function routes(fastify: FastifyInstance) { console.log(`going to sign ${request.url}`) const urlParts = request.url.split('/') - const urlToSign = urlParts.splice(3).join('/') + const urlToSign = decodeURI(urlParts.splice(3).join('/')) const token = await signJWT({ url: urlToSign }, expiresIn) // @todo parse the url properly