Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

256
Views
React JS Aws İmage Upload Error (Failed to Fetch)

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

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!