php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58187 Not working when file exceeds the file size limit
Submitted: 2008-05-04 09:08 UTC Modified: 2009-01-21 11:15 UTC
From: pascal dot beyeler at mediaconverter dot org Assigned:
Status: Wont fix Package: uploadprogress (PECL)
PHP Version: 5.2.5 OS: SuSE Linux 10.3
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: pascal dot beyeler at mediaconverter dot org
New email:
PHP Version: OS:

 

 [2008-05-04 09:08 UTC] pascal dot beyeler at mediaconverter dot org
Description:
------------
As soon as I'm trying to upload a file which exceeds the php max upload file size and max post data the uploadprogress_get_info function doesn't return any data. Uploadprogress also doesn't create the file in /tmp. I couldn't find any code in uploadprogress which could cause this behaviour. So I'm not absolutely sure if it's a bug in uploadprogress but it would be great if somebody could take a look at it.



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-07-23 22:04 UTC] psevdo at zond dot org
i confirm this bug, plz fix it )
 [2008-07-24 08:20 UTC] chregu@php.net
Does it return no data, if it's still below the max file size?  
and stop return when it's over the limit? Or just right from 
the start?
 [2008-07-24 08:22 UTC] pascal dot beyeler at mediaconverter dot org
Right from the start.
 [2008-08-03 07:07 UTC] psevdo at zond dot org
Yes, right from the start.
 [2008-11-25 09:20 UTC] adam at shiftcreate dot com
i have this problem to
 [2008-12-09 19:26 UTC] zlx at gmx dot de
would be really awesome if you can fix it :)
 [2009-01-21 11:15 UTC] chregu@php.net
Here's my analysis

If the total file size exceeds post_max_size, PHP aborts the 
upload before the extension even comes into play and the 
extension is therefore never informed. Nothing I can change 
about that.

If the total file size is smaller than post_max_size but 
larger than upload_max_filesize you could inform the user 
during the upload, that his file is too large and he should 
abort, but we shouldn't abort the upload per se, since there 
may be another file coming, which isn't too large (and as 
far as I know, we can't abort the upload totally, we just 
can abort the internal process, the enduser still has to 
wait until it's uploaded)

I try to update the example, but there's currently not more 
I can fix in the extension
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 15:01:32 2024 UTC