Skip to content

file_content is not working as expected? #34854

Closed
@rickyma

Description

@rickyma

Description

By default this API's response only contains file's metadata. Use comma-separated "includes" options to retrieve more fields. Option "file_content" will try to retrieve the file content, option "lfs_metadata" will try to retrieve LFS metadata.

I am using the new API contents-ext. I pass file_content, but the content of the file is still null?
How could I get the content?

lfs_metadata is working fine.

Gitea Version

latest

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

./gitea web

Database

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/not-a-bugThe reported issue is the intended behavior or the problem is not inside Gitea

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions