I need to post a file in Node.js using Request module in a JSON in such a pattern:
{
id: <string>,
title:<string>,
file: file
}
The id and title are given, however I don' t know how to fill in the 3rd attribute 'file'. Let me also add, that the file is of graphical type, mostly .png, .jpg, and .tiff. Do you have any idea? The file has specified location on the disk, let it be for example /home/user/file.png