[Pmwiki-users] Re: spaces in uploaded files

Christian Ridderström chr
Fri Apr 9 15:47:50 CDT 2004


On Fri, 9 Apr 2004, Wayne Lee wrote:

> hi,
> 
> i think i've been able to use uploaded files with
> space by changing in upload.php:
> 
> SDV($UploadNamePattern,'[A-Za-z0-9][ -\w.]*[A-Za-z0-9]');
> 
> to include a space in the middle characters [ -\w.]
> 
> however, i'd like to add this in the UploadExtended
> updates that Christian Ridderstr?m made:
> 
> <http://www.pmichaud.com/wiki/Cookbook/UploadExtended>

You could try the thing I wrote here:
	http://www.pmichaud.com/wiki/Cookbook/UploadExtended#extensions

I haven't tested it though.

> also, what's wrong with spaces in filenames anyhow?

Historically speaking, when using a command line interface, spaces have
been used to separate arguments. E.g. if you write:

	dir My Documents

you're trying to do dir on 'My' and 'Documents', instead of 'My Documents'.

/Christian

-- 
Christian Ridderstr?m                           http://www.md.kth.se/~chr





More information about the pmwiki-users mailing list