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

140
Views
HTML cómo subir un archivo al servidor

Quiero cargar un archivo en el servidor, para que otro usuario pueda ir al sitio y buscarlo.

Tomará el archivo del cliente y lo colocará en https://vidimax.elan1012549.repl.co/Videos/ o Videos/

para que CUALQUIER usuario pueda ingresar y ver el video cuando el html recupere el archivo Videos/FILENAME.mp4

 <input type="file" id="VIDEO"> <input type="submit" id="submit">

luego, en otra página, cualquier usuario puede acceder con la barra de búsqueda en

 <input type="text" placeholder="Search" autofocus id="SearchBar"> <input type="submit" id="search" value="search" onclick="SetQuery(), GetQuery(), reload()"> <br> <br> <br> <textarea id="ShowResultsFor"></textarea> <br><br><br> <div id="div"> <video src="Videos/" width="1080" height="720" controls id="Result2"> </video> </div>
 let Query; let Video; function SetQuery(){ var Search = document.getElementById("SearchBar"); Query = Search.value; } function GetQuery(){ document.getElementById("ShowResultsFor").value = ("Results for: " + Query); Video = (Query + ".mp4"); document.getElementById("Result2").src = ("Videos/" + Video); console.log(document.getElementById("Result2").src) } function reload(){ var container = document.getElementById("div"); var content = container.innerHTML; container.innerHTML= content; //this line is to watch the result in console , you can remove it later console.log("Refreshed"); }

Específicamente, no puedo usar PHP porque el navegador solo descarga el archivo .php, ya que no es compatible con php

y deseo que esto funcione en la mayoría de los navegadores

editar: encontré un método con python

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!