Re: space in filenames when uploading?
| From: | Armando | Date: | Thu, 06 Sep 2007 15:52:23 +0000 |
| Subject: | Re: space in filenames when uploading? | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-28449@lists.php.net to get a copy of this message | ||
Strange... I just tried creating and writing to a text file by using a filename with a space in it and it worked ok. Perhaps consider using str_replace to convert spaces to the ascii value for a space (chr(32) I believe) and give it a shot. Cheers.
Armando
Gustav Wiberg wrote:
Hi! Of course I have tried it! Therefore I asked... :-) (I always try things first if I know what to test) The problem is that normal files (with no spaces) are uploaded and displayed as I want to. Files with spaces doesn't seem to be displayed. I think it could be something with paths or so on... Best regards /Gustav -----Original Message----- From: Stut [mailto:stuttle@gmail.com] Sent: Wednesday, September 05, 2007 6:01 PM To: Gustav Wiberg Cc: 'php-windows@lists.php.net' Subject: Re: [PHP-WIN] space in filenames when uploading? Gustav Wiberg wrote:When using file-upload. IS there a restriction of uploading filenames when they have space in it? I would like to be able to upload those files as well... like my name gustav wiberg.jpgHave you tried it? Your first step with questions of a "will this work" nature is to try it before asking here. -Stut