injected bucket service from backend-sdk bucket module
Max avatar size in MB
injected logger used to handle the logging
request context [headers, body, params, query]. Note:
params.userId
is requiredquery.contentType
is required and should be one of the following: image/jpeg, image/jpg, image/png, image/webpquery.contentLength
is required and should be a number200 Status OK
This handler will get avatar upload url by applying the following steps in sequence:
Get userId from context.params
Get maxAvatarSizeMB from context.config
Get and validate contentType from context.query
Get and validate contentLength from context.query
Generate signed url
Return signed url
Error
400 NBError Bad Request
Generated using TypeDoc
Get avatar upload url handler