|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2008-07-24 13:59 UTC] waza123 at inbox dot lv
Description: ------------ im using lighttpd+php5.2.5 (fast cgi) , and function: uploadprogress_get_info() do not return any thing.. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 19:00:02 2025 UTC |
I install the extension on my Window machine and works great. But I have same question regarding UPLOAD_IDENTIFIER: Why not use $_SESSION for the info? :) I hope you can find workaround to 'automagicaly' calculating identifier without UPLOAD_IDENTIFIER. But... I really hope I can use file "field name" for the IDENTIFIER. Maybe something like we find in MySql to get "insert_id". When user upload the file(s), this extension save generated ID for each file name (field name). This ID assosiated with session of the user. We have to call a (new) function directly to get this generated ID (because it will be replaced by new generated ID if there is other upload activity with the same field name) For example, if we have 2 file fields: "file1" and "file2". //First, get the ID $ID1 = uploadprogress_get_identifier("file1"); $ID2 = uploadprogress_get_identifier("file2"); //Second, get the info $info1 = uploadprogress_get_info($ID1); $info2 = uploadprogress_get_info($ID2); $totalinfo = uploadprogress_get_info($ID1, $ID2); So, now the uploadprogress_get_info function can have many arguments. It's sound like stupid suggestion. Isn't? But I hope it will works. Best, @zaenal