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

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -