Hello, dear community,
I’m trying to upload my files to a given API, even though I’ve tried a lot, I couldn’t manage to upload it. Here is my recent - non-working - code:
uppy.use(Uppy.AwsS3, {
getUploadParameters(file) {
const url = 'amazon_url';
const fields = JSON.stringify({
filename: file.name,
contentType: file.type
});
const headers = {
accept: 'application/json',
'content-type': 'application/json'
};
return Promise.resolve({
method: 'POST',
url: url,
fields: fields
});
}
});