android - How to specify destination in multer to upload images to remote server folder in node js? -
app.post('/photo',[ multer({ dest:'http://example.com/images/new/',limits: {files: 8,fields: 18}}
this not working on other server , trying upload server's folder.how change ?
if understand correctly, user uploading image node server, wish move file different server, either physically not same node server or not have access file system server is.
dest: destination directory uploaded files
it means server should have direct file system access folder. can is: treat destination temporary folder, can move file required final location using other schemes. other schemes, meaning depending on available communication between server, can scp call, or if cloud server, aws-s3 module, depends. multer not automatically you.
Comments
Post a Comment