J
J
jenya77712019-12-16 14:55:45
Node.js
jenya7771, 2019-12-16 14:55:45

How to relay a file to another NodeJS server?

Hello, there are 2 servers on NodeJs.
1st server is used for user interaction.
2nd file storage server.
How can I relay this file to the second server after accepting a file from a user on the first server through the input using the POST method. where will it be stored, but when relaying add additional data to the file (name, save location, etc.)?
Maybe there are convenient libraries for working with files?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Suntsev, 2019-12-16
@GreyCrew

You can transfer the file via send
Edit (add meta attributes) via ffmetadata

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question