php.net |  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:
MUST BE VALID
Solve the problem:
30 + 2 = ?
Subscribe to this entry?

 
 [2009-06-24 15:30 UTC] avkiev at ukr dot net
Description:
------------
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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-06-25 03:55 UTC] chregu@php.net
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-2019 The PHP Group
All rights reserved.
Last updated: Thu Oct 24 04:01:29 2019 UTC