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

74
Views
i have sent my data by form-data but it is still required

it's been several day that i am working on this issue. i have sent my data by 'Content-Type': 'multipart/form-data' and i can see it in my request:

-----------------------------393374356923066383831416984
Content-Disposition: form-data; name="priority_id"

1
-----------------------------393374356923066383831416984
Content-Disposition: form-data; name="department_id"

3
 -----------------------------393374356923066383831416984--

but it responds that the required data hasn't been sent:

department_id   [ " please enter department id" ]
priority_id   [ " please enter priority_id" ]

and this is my code:

the header i have set:

  headers: {
       'Accept': 'application/json',
       'Content-Type': 'multipart/form-data'
  },

the way i am sending data:

   const FormData = require('form-data');

    const data = new FormData();
    data.append('priority_id', '1');
    data.append('department_id', '3');
    this.$store
      .dispatch("modules/create",data)

this api works with Postman form-data table

it would be great if someone can help me with it.

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!