How to upload file to specific folder within an AWS s3 bucket in node.js

Viewed 547

Below is my code for uploading a file to an s3 bucket in node.js:

Bucket: 'questions'

This works fine, however I want to create a folder inside the bucket to save the file to. I have tried the following but received an error:

Bucket: 'questions'\'newfolder',

Does anyone know how to do this? Many Thanks

0 Answers
Related