|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57505 uploadprogress_get_info not working if UPLOAD_IDENTIFIER is AFTER file element
Submitted: 2007-02-02 11:32 UTC Modified: 2007-07-17 05:10 UTC
From: massimiliano dot torromeo at gmail dot com Assigned:
Status: Not a bug Package: uploadprogress (PECL)
PHP Version: 5.2.0 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: massimiliano dot torromeo at gmail dot com
New email:
PHP Version: OS:


 [2007-02-02 11:32 UTC] massimiliano dot torromeo at gmail dot com
I had an hard time finding out why my code didn't work and the example worked fine.
Turned out that if you place the UPLOAD_IDENTIFIER after the file element, it's impossible to retrieve uploadprogress_get_info data.

Reproduce code:
This works:
<input type="hidden" name="UPLOAD_IDENTIFIER" id="UPLOAD_IDENTIFIER"  value="1325a38f55c0b1b4" />
<input type="file" id="allegato" name="allegato" />

But this doesn't
<input type="file" id="allegato" name="allegato" />
<input type="hidden" name="UPLOAD_IDENTIFIER" id="UPLOAD_IDENTIFIER"  value="1325a38f55c0b1b4" />

Expected result:
array with uploadprogress data

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-07-17 05:10 UTC]
Thank you for taking the time to write to us, but this is not
a bug.

Yes, it has to be before the first file element. Not 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Nov 30 10:03:44 2022 UTC