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-14 04:22 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: No Feedback Package: *Web Server problem
PHP Version: 5.5.4 OS:
Private report: No CVE-ID: None
 [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

Pull Requests

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>
 [2021-03-14 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 12:01:31 2024 UTC