Closed maxep closed 3 years ago
@maxep Thank you, this issue was driving me mad. Currently using #5 in my project.
hey, @pturner1989 there is no mention about set private or public optional!! - I mean how do I do that? is it even possible?
Just checked that out and it's a great contribution ! Sorry for the delay, better late than never, i'll merge in. ;)
@shorwood help!, there is no mention about set private or public optional!! - I mean how do I do that? is it even possible?
@amantiwari1 currently no. Uploads are public-read
, see index.js#L65. That's the same behavior as the official aws-s3 strapi plugin.
Provide a more robust URI conversion when using CDN.
For some mime (like audio) the
Location
format differs, and so the URL conversion usingdata.Location.replace
fails. By using URI.js, we can easily enforce the URL to the following format:https//<config.cdn>/<object.key>