Snippets report incorrect filesize in bytes, slightly larger than actual filesize
Summary
File size in bytes shown on snippets seems to be always off, a few bytes larger than the actual number of bytes in the file
Steps to reproduce
Firefox
- Create a snippet between 100 - 500 bytes in size
- Compare the size shown vs. the actual size by downloading the file.
Example Project
https://gitlab.com/snippets/1790401
What is the current bug behavior?
Listed size in bytes is slightly larger than actual size of the file.
In example, listed as 168 bytes, file is actually 162 bytes.
What is the expected correct behavior?
Shows actual correct size of the file
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com
MR Breakdown
- I think we can close this issue. Now that the size it's retrieved from the blob in the repository and not from the database, the size we get is the correct one.