[API] Get LFS objects #8940

Closed
opened 2025-11-02 08:23:43 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @qwerty287 on GitHub (May 11, 2022).

Feature Description

It is not possible to get files stored with LFS using the API. The raw files endpoint just returns something like

version https://git-lfs.github.com/spec/v1
oid sha256:c5f52283c3726e84b1a76cb6f2e804a4c08463c6c113c00c9f590b2b8aed6c58
size 94318

Then, a possibility to get the file content itself would be good, perhaps using the filepath (the more easy option for clients, similar to the <owner>/<repo>/media/<file> endpoint in the web ui), or using the SHA sum the raw endpoint returns.

Screenshots

No response

Originally created by @qwerty287 on GitHub (May 11, 2022). ### Feature Description It is not possible to get files stored with LFS using the API. The raw files endpoint just returns something like ``` version https://git-lfs.github.com/spec/v1 oid sha256:c5f52283c3726e84b1a76cb6f2e804a4c08463c6c113c00c9f590b2b8aed6c58 size 94318 ``` Then, a possibility to get the file content itself would be good, perhaps using the filepath (the more easy option for clients, similar to the `<owner>/<repo>/media/<file>` endpoint in the web ui), or using the SHA sum the raw endpoint returns. ### Screenshots _No response_
GiteaMirror added the type/proposaltype/feature labels 2025-11-02 08:23:43 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#8940