This repository was archived by the owner on Feb 12, 2024. It is now read-only.
Applying mtime with HTTP API /api/v0/files/write doesn't seem to work #3225
Labels
need/triage
Needs initial labeling and prioritization
ipfs-http-client version: ^46.0.0
Repo version: 8
System version: x64/linux
Node.js version: v12.18.3
Commit: e7396bc
Severity: low
Description:
Using curl I can apply an mtime to a MFS file with /api/v0/files/touch but not with /api/v0/files/write.
Steps to reproduce the error:
% curl -X POST "http://172.30.16.17:5002/api/v0/files/touch?arg=/users/mrh-i/t.txt&mtime=1697263111"
% curl -X POST -F [email protected] "http://172.30.16.17:5002/api/v0/files/write?arg=/users/mrh-i/x.txt&mtime=1697263111&create=true"
% jsipfs files ls -l /users/mrh-i/
-rw-r--r-- Oct 13, 2023, 10:58:31 PM PDT t.txt QmY1qYmfmwjf9CeB3tMNYcuJaVcHZ7oFXiSDqqPmPQfRrF 0
-rw-r--r-- - x.txt Qme8gXcjgesRXRiLcmdDUmupfaaa1yKHYfBbNS6NU7EVGc 945
The text was updated successfully, but these errors were encountered: