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

201
Views
CORS issue while previewing images using filepond and s3

S3 bucket is configured but i am still getting the CORS error while previewing the images.

Preparing the files payload

function readyPayload(){
        setFiles([])
        imgs && imgs.sort((a, b) => parseInt(a.orderId) > parseInt(b.orderId) ? 1 : -1)
        .map((item, idx) => {
            setFiles(
                prevState => [
                    ...prevState,
                    {
                        source: item.imageUrl,
                        // options: {
                        //     type:"local"
                        // }
                    }
                ]
            )
        })
    }

The Filepond component

<FilePond
      files={files}
      allowMultiple={true}
      allowReorder={true}
      onupdatefiles={setFiles}
      onreorderfiles = {setFiles}
      onremovefile = {(error, file) => deleteImgs(file.filename)}
      imagePreviewHeight = "125px"
  />
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!