|  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
47 + 19 = ?
Subscribe to this entry?

 [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