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: 2018-08-11 16:42 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:
Status: Open 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
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Fri Jul 19 23:01:25 2019 UTC