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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: sibprogrammer at gmail dot com
New email:
PHP Version: OS:

 

 [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>
 [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: Fri Apr 26 15:01:56 2024 UTC