This is used to get a signed url to upload files;making request#
example of a request as an item object#
the item keys can be any string, they are used to identify the returned items from the response data, based on the request item keys;receiving response data#
note that, a fileDirPath
will be generated, this value is to be appended to the object props that the files are meant for; for instance, if it was for a user picture or cover, the user object should be updated with the fileDirPath value;example of response data items as an object#
uploading the file#
on the client-side, an example of uploading the file with the presigned url, goes thus, using axios
;once the files have been uploaded, the fileDirPath
received in the response should be the new value for the object the files are meant for;
for instance, if the files were meant for a post, the post should be updated with the returned fileDirPath
; same goes for other objects, such as arenas, users, e.t.c.; Modified at 2025-07-15 06:00:16