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
Have you experienced this issue?
Rate the importance of this bug to you:

 [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-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 08:01:29 2024 UTC