Is there a straightforward way to upload and download files using the storageService.upload and storageService.download functions in my JavaScript/Loopback code? I'm trying to achieve something like this:
app.post("/sendFile", (req, res) => client.upload( req, res, {}, () => {console.log("cb")} ) );
However, I am encountering issues. I am sending my REST request with the Advanced Rest Client Application on Google Chrome. I have set the Content-Type to multipart-form-data and included my jpg file in the files section.
The error message I am receiving is: Failed to create a multipart upload on S3: {"message":"Missing required key 'Bucket' in params","stack":"MissingRequiredParameter: Missing required key 'Bucket' in params (...).
As a newcomer, I believe that the Loopback documentation could be more helpful. Thank you for any assistance provided!