|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #534 Arrays as file upload names
Submitted: 1998-07-10 04:52 UTC Modified: 1999-06-12 16:34 UTC
From: sparky at hypereality dot co dot uk Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 3.0 Latest CVS OS: Linux RH4
Private report: No CVE-ID: None
 [1998-07-10 04:52 UTC] sparky at hypereality dot co dot uk
There seems to be a problem with using an array as a file upload name:

echo $foo[bar];
<FORM ACTION="<?php echo $PHP_SELF; ?>" METHOD="POST" ENCTYPE="multipart/form-data">
<INPUT TYPE="FILE" NAME="foo[bar]">
<INPUT TYPE="submit">

Doesn't work - this would be very useful since I need to pass either foo[$VAR] or $(foo_$VAR)
so that I can differentiate and neither seem possible.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1999-06-12 16:34 UTC] jim at cvs dot php dot net
Fixed in CVS, will be in 3.0.10.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Thu Sep 28 08:01:25 2023 UTC