php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65763 Unable to upload file with square brackets in its name
Submitted: 2013-09-26 03:36 UTC Modified: 2021-03-04 13:45 UTC
Votes:6
Avg. Score:4.8 ± 0.4
Reproduced:4 of 4 (100.0%)
Same Version:2 (50.0%)
Same OS:2 (50.0%)
From: sibprogrammer at gmail dot com Assigned: cmb (profile)
Status: Feedback Package: *Web Server problem
PHP Version: 5.5.4 OS:
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2013-09-26 03:36 UTC] sibprogrammer at gmail dot com
Description:
------------
1. Prepare simple upload form. See http://www.php.net/manual/en/features.file-
upload.post-method.php
2. Try to upload file with following name "[ebook]Title.pdf"

Looks like the root cause if a fix from https://bugs.php.net/bug.php?id=54374 If 
file name contains square bracket it will be simply ignored. But it's not a proper 
solution. We could not force people to rename such files (earlier it was ok with 
PHP 5.2) and also unable to detect error.

Expected result:
----------------
$_FILES array contains information about uploaded file.

Actual result:
--------------
$_FILES array is empty. No errors on upload.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-08-11 16:42 UTC] cmb@php.net
-Package: Filter related +Package: *Web Server problem
 [2021-03-04 13:45 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-03-04 13:45 UTC] cmb@php.net
I cannot reproduce this with PHP-7.4.  Is it still an issue for
you with any of the actively supported PHP versions[1]?

[1] <https://www.php.net/supported-versions.php>
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Mar 05 14:01:23 2021 UTC