I am able to connect to AWS but in body of my message i cant find a way to send the file via byte or stream.
Here is the code.
I am getting the file from UI
let files = $w( “#uploadButton3” ).value;
and then sending to my backed AWS program
var upload = new AWS.S3.ManagedUpload({
params: {
Bucket: ‘gill-bucket’ ,
Body :files[0],
Key : “folder/” +Date.now()
}
});
If i change the body to a string then it works. I error i am getting is unsupported body payload.