Skip to content

Read file size from FileStream, not FileInfo, for correct symlinked file sizes#1675

Merged
Badgerati merged 1 commit intodevelopfrom
Issue-1597
Apr 11, 2026
Merged

Read file size from FileStream, not FileInfo, for correct symlinked file sizes#1675
Badgerati merged 1 commit intodevelopfrom
Issue-1597

Conversation

@Badgerati
Copy link
Copy Markdown
Owner

Description of the Change

The FileInfo.Length was only reporting the symlink file size when attaching files, using FileStream.Length reports the correct size.

Related Issue

Resolves #1597

@Badgerati Badgerati added this to the 2.13.0 milestone Apr 11, 2026
@Badgerati Badgerati self-assigned this Apr 11, 2026
@Badgerati Badgerati merged commit 6a0459c into develop Apr 11, 2026
20 checks passed
@Badgerati Badgerati deleted the Issue-1597 branch April 11, 2026 16:14
@Badgerati Badgerati changed the title Read file size from FileStream, not FileInfo, for correct symlinked file sizes on Linux Read file size from FileStream, not FileInfo, for correct symlinked file sizes Apr 15, 2026
@Badgerati Badgerati mentioned this pull request Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pode does not report the correct Content-Length when serving a symlinked file

1 participant