mirror of
https://github.com/prasathmani/tinyfilemanager.git
synced 2026-04-27 03:15:50 +03:00
[GH-ISSUE #127] Negative filesize on ARMv7 for files over 2GB #88
Labels
No labels
Feature
Feature
Is It Really an Issue?
Need More Info
Request
Security
bug
duplicate
enhancement
enhancement
help wanted
invalid
pull-request
question
suggestion
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tinyfilemanager#88
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dausruddin on GitHub (Feb 19, 2019).
Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/127
I have a couple of files over 2GB in size and they are displayed with negative size.
After reading some sources, turned out filesize() doesn't work well with 32-bit system for files bigger than 2GB.
I found some functions to replace filesize() that will work, but I am not sure if it is a good idea for me to edit the code by myself. Maybe you know the best method to use.
Thanks.
@prasathmani commented on GitHub (Feb 28, 2019):
Fixed
@dausruddin commented on GitHub (Mar 3, 2019):
Hi. Looking into the commit, you just added support for Windows but Linux will still be using
filesize.The code clearly would just be checking for a Windows and use specific method, but then if Linux, it would still be using filesize().
I have tried searching a solution by myself and found this solution works: https://stackoverflow.com/a/5502328
@prasathmani commented on GitHub (Mar 3, 2019):
@psycholyzern your suggestion is added now. check now.
@dausruddin commented on GitHub (Mar 13, 2019):
Thanks :)