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:
`
----wRErRVmgiBKG9pP4alXP
Abspath: /some/path/f.txt
Content-Disposition: form-data; name=“file”; filename=“f.txt”
Content-Type: application/octet-stream
`
I expect that ipfs is going to read the file from the directory and return its hash,
but I am getting:
{"Name":"f.txt","Hash":"bafkreihdwdcefgh4dqkjv67uzcmw7ojee6xedzdetojuzjevtenxquvyku","Size":"0"}
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).