var upload = new AWS.S3.ManagedUpload({
params: {
Bucket: "backstageclass-storage",
Key: file.name,
Body: file
}
})
var promise = upload.promise()
promise.then(
function(data) {
alert("Successfully uploaded photo.");
console.log(data,'Data')
},
function(err) {
return alert("There was an error uploading your photo: ",);
}
);
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)