I am trying to add a file using http. I am sending the request with the nocopy request parameter. I am specifying the Abspath header for the files and sending the empty multipart:
Content-Disposition: form-data; name=“file”; filename=“f.txt”
I expect that ipfs is going to read the file from the directory and return its hash,
but I am getting:
And I am getting an empty file, when reading from ipfs.
It looks like ipfs saves the data I send in the request (which is empty, 0 bytes), and ignores the file I specify with Abspath. Am I right? Is that possible to add a file with http api without sending the whole file via the network? As ipfs already has the path to the file, it looks natural for me not to send it over the net (I am planning to add big files of 1GB and more).