简体   繁体   中英

How can i send a file from multer to my website folder which is hosted on a server while multer is localhost

I want to upload a file through multer which is locally, Now i want to set the destination a multer to the upload folder of a website which is hosted on the server like GoDaddy or aws etc

Don't mismatch your concept, localhost mean the ip of your system, so at server end it's a server ip which sense your api calls and handle that request. So multer is use to take your file and download it or copy file on your server, and the file is send from client side. inshort client send it's file and server get that file process. the library which you are using is multer to handle file.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM