Skip to content

Incorrect size for large file #15

Open

Description

@sandra2n

Hello,

When I upload large file the returned bytes_total is incorrect and the returned bytes_uploaded go back to smaller size after a while.

Ex with a file of 6.59GB (7 087 108 096)

16:37:58 : Array
(
[upload_id] => 632b213b89b79
[fieldname] => link[]
[filename] => big_file.rar
[time_start] => 1663770974
[time_last] => 1663771078
[speed_average] => 4294734946
[speed_last] => 40598789
[bytes_uploaded] => 4270802843
[bytes_total] => 2792138080
[files_uploaded] => 0
[est_sec] => 0
)

16:37:59 : Array
(
[upload_id] => 632b213b89b79
[fieldname] => link[]
[filename] => big_file.rar
[time_start] => 1663770974
[time_last] => 1663771079
[speed_average] => 144183
[speed_last] => 39303682
[bytes_uploaded] => 15139229
[bytes_total] => 2792138080
[files_uploaded] => 0
[est_sec] => 19260
)

Do you know what to do to fix it, please?

Thank you

Activity

  1. ryandesign commented on Dec 12, 2022

    @ryandesign

    Did e77cf26 fix this?

  2. sandra2n commented on Dec 13, 2022

    @sandra2n
    Author

    Sorry, I don't know how to compile

  3. ramsey commented on Dec 13, 2022

    @ramsey
    Member

    I'll try to release a version that contains the fix later this month.

  4. meyerrob commented on Mar 2, 2023

    @meyerrob

    Same problem here - after 2GB the uploadprogressbar switches to 16EB - looks very much like an int overflow. An new version with the patch e77cf26 would be appreciated very much :-) (Tested on PHP 8.0.28)

  5. searosin commented on Mar 26, 2026

    @searosin
    Contributor

    I fixed this issue 4 years ago. It would be very helpful to tag a new release containing the fix. Thank you in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions