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.