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

214
Views
Error when trying to use Uppy in React.js

Trying to use a presigned-url for aws but I keep getting the error when I try to upload a photo:

[Uppy] [15:26:41] Failed to upload buffalo1.jpg AwsS3: got incorrect result from 'getUploadParameters()' for file 'buffalo1.jpg', expected an object '{ url, method, fields, headers }' but got 'undefined' instead.

I have everything set up just as the documentation advises. Can anyone take a look and tell me what it is that I might be missing?

const uppy = useUppy(() => {
return new Uppy({ autoProceed: true }).use(AwsS3, {
  getUploadParameters(file) {
    return fetch(
      `${process.env.baseUrl}/api/asset/presign/upload?assetId=${props.asset.id}&key=${file.id}&contentType=${file.type}`
    )
    .then((res) => {
      return res.json()
    })
    .then((data) => {
      return {
        method: data.method, //data.method,
        url: data.url,
        fields: {},
        headers: {
          "Content-Type": file.type,
        },
      };
    })
    .catch((err) => {
      console.log("error: ", err);
    });
  },
});

});

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!