$_FILES, backslashes, input=file and IE 6
| From: | BOb Pardoe | Date: | Tue, 14 May 2002 21:06:59 +0000 |
| Subject: | $_FILES, backslashes, input=file and IE 6 | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-13804@lists.php.net to get a copy of this message | ||
I have a problem, I am accepting a file type input in IE6. The file that I want to upload is shown
as
C:\dir1\dir2\File.ext
Posting this page to the next one, where I try to do
$_FILES["filename"]["name"]
All I get is
File.ext
This is because of the back slashes. If I change them to forward slashes it all works fine.
I have tried to change the \ to / using JavaScript, but as a file type input it is read only from
the JavaScript perspective.
Has anyone solved this problem ?
If so how
Thanks
BOb