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

97
Views
Formulario HTML que no envía ningún archivo adjunto

mi formulario no toma ni envía ningún archivo adjunto y tiene los atributos enctype y method dentro del elemento del formulario. Se parece a esto:

 <form action="vsend.php" class="volunteerAppForm" method="post" onsubmit="return validateForm()" role="form" enctype="multipart/form-data"> <div class="fileUploadSection"> <label for="fileToUpload">Please upload your CV</label><br> <input type="file" name="file" id="fileToUpload" required> </div> <div class="captcha"> <div class="g-recaptcha" data-sitekey="6Ld071QUAAAAAIutKo0CkibGU8oeaomD5niSfNiX"></div> <input type="submit" name='submit' value="send" class="submit-input" style="cursor: pointer;"> </div> </form>
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Depuré mis códigos, el problema estaba en mis cadenas solo en mi archivo php aquí:

 //Attachments if ( isset($_FILES['uploaded_file']) && $_FILES['uploaded_file']['error'] == UPLOAD_ERR_OK ) { $mail->AddAttachment( $_FILES['uploaded_file']['tmp_name'], $_FILES['uploaded_file']['name'] ); }

Como mi atributo de tipo de entrada tiene un valor "archivo", mi cadena también debe tener el mismo nombre 'archivo' y no 'archivo_cargado' como se muestra arriba. Podría ser así:

//Archivos adjuntos

 if ( isset($_FILES['file']) && $_FILES['file']['error'] == UPLOAD_ERR_OK ) { $mail->AddAttachment( $_FILES['file']['tmp_name'], $_FILES['file']['name'] ); }
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!