#35883 [Opn]: FILENAME PROBLEM
| From: | xfuture00 at hotmail dot com | Date: | Tue, 03 Jan 2006 12:06:11 +0000 |
| Subject: | #35883 [Opn]: FILENAME PROBLEM | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-91381@lists.php.net to get a copy of this message | ||
ID: 35883
User updated by: xfuture00 at hotmail dot com
Reported By: xfuture00 at hotmail dot com
Status: Open
Bug Type: Filesystem function related
Operating System: WINXP_PRO
PHP Version: 5.1.1
New Comment:
Well.. as for extra information..
my script is working well with files without SPACES between their
filename...
Previous Comments:
------------------------------------------------------------------------
[2006-01-03 13:03:13] xfuture00 at hotmail dot com
Description:
------------
Well... I try to search around the solution for this problem..
no matter Advanced search in bugs.php.net
or google...
I found $_FILES unable to get files with space between the filename
like "ab c.txt" or "my files.txt"
Reproduce code:
---------------
My Form:
<form method="POST" enctype="multipart/form-data" action="xxx.php";
?>"
name='addfileform'>
<input type="file" name="filename" size="64"
maxlength="255" class=""
>
My PHP:
$myFile = $_FILES['filename'];
$source_file = $myFile['tmp_name'];
$destination_file = "**some location**";
$upload = ftp_put($conn_id, $destination_file, $source_file,
FTP_BINARY);
Expected result:
----------------
I expect the upload can be successfully as the file that WITHOUT space
between the file name...
Actual result:
--------------
the result return filename is an Undefined Index..
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35883&edit=1