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

149
Views
¿Cómo cargar un archivo desde ajax a django backend?

¿Alguna idea de cómo cargar un archivo (.pdf) desde ajax a django backend?

 customerForm.addEventListener('submit', e => { e.preventDefault() $.ajax({ type: 'POST', url: '', data: { 'csrfmiddlewaretoken': csrf[0].value, 'identity_type': $('#id_identity_type').val(), 'identity_number': $('#id_identity_number').val(), 'file': $('#id_file').val() }, success: function(response) { console.log('SUCCESS') }, error: function(error) { console.log(error) } })

Gracias

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Hay muchas formas, pero aquí hay un enlace, creo que es simple.

https://www.youtube.com/watch?v=g3h1OC3S5Lo

Él / ella explica cómo cargar un archivo usando ajax .

about 4 years ago · Juan Pablo Isaza 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!