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

223
Views
property originTypeObj does not exist on type "{}"

After uploading files I get typescript error property originTypeObj does not exist on type "{}"

    formData.append("front_img", new Blob([front_img.originTypeObj as any]));
    formData.append("back_img", new Blob([back_img.originFileObj as any]));

I know I should create type for originTypeObj, but can not figure it out how, since I am really new in typescript.

about 4 years ago · Santiago Gelvez
1 answers
Answer question

0

I fixed it to give my front_image and back_image state type:

const [front_img, setFrontImg] = useState<UploadFile<any> | null>(null);
const [back_img, setBackImg] = useState<UploadFile<any> | null>(null);

and then append them to formData like this:

formData.append("front_img", new Blob([front_img?.originFileObj as any]));
formData.append("back_img", new Blob([back_img?.originFileObj as any]));
about 4 years ago · Santiago Gelvez Report
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!