space in filenames when uploading?

space in filenames when uploading?

am 05.09.2007 17:59:00 von Gustav Wiberg

--33540795-28717-1189007942-2488
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable

Hi!
=20
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 wel=
l...
=20
=20
like my name
gustav wiberg.jpg
=20
=20
Best regards
/Gustav Wiberg

--33540795-28717-1189007942-2488--

Re: space in filenames when uploading?

am 05.09.2007 18:00:58 von Stut

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.jpg

Have you tried it? Your first step with questions of a "will this work"
nature is to try it before asking here.

-Stut

--
http://stut.net/

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

RE: space in filenames when uploading?

am 05.09.2007 18:10:00 von Gustav Wiberg

Hi!

Of course I have tried it! Therefore I asked... :-) (I always try things fi=
rst if I know what to test)
The problem is that normal files (with no spaces) are uploaded and displaye=
d 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
=20

-----Original Message-----
From: Stut [mailto:stuttle@gmail.com]=20
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 whe=
n they have space in it? I would like to be able to upload those files as w=
ell...
> =20
> =20
> like my name
> gustav wiberg.jpg

Have you tried it? Your first step with questions of a "will this work"=20
nature is to try it before asking here.

-Stut

--=20
http://stut.net/

No virus found in this outgoing message.
Checked by AVG Free Edition.=20
Version: 7.5.485 / Virus Database: 269.13.5/990 - Release Date: 2007-09-04 =
22:36
=20

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

RE: space in filenames when uploading?

am 05.09.2007 18:12:00 von Gustav Wiberg

Hi!

Another step on the way.. I don't get any tmp-file with $_FILES['frmPicture=
']['tmp'] when I try to upload files with spaces... What could that be?

Best regards
/Gustav Wiberg
=20

-----Original Message-----
From: Stut [mailto:stuttle@gmail.com]=20
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 whe=
n they have space in it? I would like to be able to upload those files as w=
ell...
> =20
> =20
> like my name
> gustav wiberg.jpg

Have you tried it? Your first step with questions of a "will this work"=20
nature is to try it before asking here.

-Stut

--=20
http://stut.net/

No virus found in this outgoing message.
Checked by AVG Free Edition.=20
Version: 7.5.485 / Virus Database: 269.13.5/990 - Release Date: 2007-09-04 =
22:36
=20

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: space in filenames when uploading?

am 05.09.2007 18:12:15 von Stut

Gustav Wiberg wrote:
> 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...

I apologise, I made an incorrect assumption based on what you sent.

What do you mean by "doesn't seem to be displayed"? Show us code.

-Stut

--
http://stut.net/

> -----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.jpg
>
> Have you tried it? Your first step with questions of a "will this work"
> nature is to try it before asking here.
>
> -Stut
>

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

RE: space in filenames when uploading?

am 05.09.2007 18:15:00 von Gustav Wiberg

Hi again!

Se my other mail regarding tmp_name....

Best regards
/Gustav Wiberg


-----Original Message-----
From: Stut [mailto:stuttle@gmail.com]=20
Sent: Wednesday, September 05, 2007 6:12 PM
To: Gustav Wiberg
Cc: 'php-windows@lists.php.net'
Subject: Re: [PHP-WIN] space in filenames when uploading?

Gustav Wiberg wrote:
> 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 displa=
yed as I want to. Files with spaces doesn't seem to be displayed.
>=20
> I think it could be something with paths or so on...

I apologise, I made an incorrect assumption based on what you sent.

What do you mean by "doesn't seem to be displayed"? Show us code.

-Stut

--=20
http://stut.net/

> -----Original Message-----
> From: Stut [mailto:stuttle@gmail.com]=20
> 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?
>=20
> Gustav Wiberg wrote:
>> When using file-upload. IS there a restriction of uploading filenames wh=
en they have space in it? I would like to be able to upload those files as =
well...
>> =20
>> =20
>> like my name
>> gustav wiberg.jpg
>=20
> Have you tried it? Your first step with questions of a "will this work"=
=20
> nature is to try it before asking here.
>=20
> -Stut
>=20

--=20
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


No virus found in this outgoing message.
Checked by AVG Free Edition.=20
Version: 7.5.485 / Virus Database: 269.13.5/990 - Release Date: 2007-09-04 =
22:36
=20

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: space in filenames when uploading?

am 06.09.2007 17:52:23 von Dijital

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.jpg
>
> Have you tried it? Your first step with questions of a "will this work"
> nature is to try it before asking here.
>
> -Stut
>

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php