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

119
Views
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
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!