Same code works fine in "react native".
But it doesn't work on the web;
Code:
const target = event.target as HTMLInputElement;
const file: File = (target.files as FileList)[0];
const response = await fetch(file);
const body = await response.blob();
await fetch(signedUrl, { method: 'PUT', body, })
.then(() => {
console.log('aws succes');
})
.catch((err) => {
console.log('aws', err);
});
Console:
TypeError: Failed to Fetch
Thanks for your answers