How can I upload/download files in the simplest way using storageService.upload and storageService.download function from my JavaScript/Loopback code? I'm trying do something like that:
app.post("/sendFile", (req, res) => client.upload( req, res, {}, () => {console.log("cb")} ) );
But this doesn't work. I make my REST request with Advanced Rest Client Application in Google Chrome. I set Content-Type for multipart-form-data and add my jpg file in files section.
I got Failed to create a multipart upload on S3: {"message":"Missing required key 'Bucket' in params","stack":"MissingRequiredParameter: Missing required key 'Bucket' in params (...) error.
I'm newbie here, but I have impression that Loopback documentation should be much better. Thanks for help!