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

102
Views
Cargue el archivo en el sitio web y muéstrelo sin actualizar el sitio ASP.NET Core 6

Estoy tratando de cargar un archivo en mi sitio web y obtener una vista previa sin actualizar el sitio web, pero no sé cómo hacerlo, en este momento selecciono un archivo con <input type=file> pero tengo un script JQuery que onchange envía la entrada con este código:

 document.getElementById('file-upload').onchange = function () { document.getElementById("upload-form").submit(); };

¿Cómo puedo hacer esto sin actualizar la página después del POST? Mi formulario se ve así (es un proyecto ASP.NET Core 6):

 <form id="upload-form" asp-action="UploadFile" asp-controller="Home" enctype="multipart/form-data"> <label for="file-upload" class="custom-file-upload"> <i class="fa fa-cloud-upload"></i> Ladda upp </label> <input id="file-upload" type="file" name="stlFile" /> </form>
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!