[GH-ISSUE #373] I would like to provide an API that returns the hash value of a file #198

Closed
opened 2026-04-08 16:51:05 +03:00 by zhus · 1 comment
Owner

Originally created by @ldeng76 on GitHub (Apr 9, 2024).
Original GitHub issue: https://github.com/sigoden/dufs/issues/373

Specific Demand

I would like to provide an API that returns the hash value of a file, which is important to verify that the file has been uploaded successfully.

Implement Suggestion

no

Originally created by @ldeng76 on GitHub (Apr 9, 2024). Original GitHub issue: https://github.com/sigoden/dufs/issues/373 ## Specific Demand I would like to provide an API that returns the hash value of a file, which is important to verify that the file has been uploaded successfully. ## Implement Suggestion no
zhus added the enhancement label 2026-04-08 16:51:05 +03:00
zhus closed this issue 2026-04-08 16:51:05 +03:00
Author
Owner

@sigoden commented on GitHub (Apr 9, 2024):

Make sense, add new query param such as GET /path-to-file?hash to return the shas256 hash value of a file.

$ curl localhost:5000/myfile1?hash

d09fd4af745c71fcc13c1e2c9783845c46aa19086bf450f330a89e5de98a69be
<!-- gh-comment-id:2044722850 --> @sigoden commented on GitHub (Apr 9, 2024): Make sense, add new query param such as `GET /path-to-file?hash` to return the shas256 hash value of a file. ```sh $ curl localhost:5000/myfile1?hash d09fd4af745c71fcc13c1e2c9783845c46aa19086bf450f330a89e5de98a69be ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#198