|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58737 $info['bytes_total'] returns incorrect value
Submitted: 2009-06-24 15:30 UTC Modified: 2009-06-25 03:55 UTC
From: avkiev at ukr dot net Assigned:
Status: Wont fix Package: uploadprogress (PECL)
PHP Version: 5.2.9 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: avkiev at ukr dot net
New email:
PHP Version: OS:


 [2009-06-24 15:30 UTC] avkiev at ukr dot net
I try to upload a big files (~500Mb)
Unfortunately, item $info['bytes_total'] returns incorrect value.
For example, if I try to upload file, which consist of 104 857 600 bytes (100 Mb) - $info['bytes_total'] returns 104 858 255 bytes during upload.
Difference always from 0 to 1500 bytes.

With little files - no problems, all ok

Thanks for this extension, very useful


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-06-25 03:55 UTC]
That data (bytes_total) comes directly from PHP itself and isn't changed by the extension. It's also not necessarily the total length of your file, but the total length of your upload, which is reported by your browser at the start of the upload.

Nothing I can do.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Oct 25 05:03:32 2021 UTC