Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

123
Vistas
Can I post files from one server to another?

I am making a simple node server to store files using express-fileupload.And I found that the files stored in the server will be deleted when the website is updated.Therefore I've made another server for storing files.Here's some of the source code.

Uploadfile.com

//...someting
var file=req.files.fle
  file.mv(path.join(__dirname+"/cloud/",file.name),(err)=>{
    if(err){
        console.log(err)
        res.send("ERROR")
      }else{
//something..

Is there any ways that I can send the file to the website that used to store file(for example,StoreFile.com) by changing the __dirname? Please provide sample source code thx.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda