in reply to Upload more than one file at a time

maybe you could also tell me how to change the regex on line 16 to allow a space (blank) as an allowed character in the base name

The regexp on line 16 is:

/^([-\@:\/\\\w.]+)$/
Which is a pretty simple regex, it says "start at the beginning of the string, then match one or more characters from this list of allowed characters, then you have to be at the end".

Now, what have you tried to add another character to the list of allowed characters?

Replies are listed 'Best First'.
Re^2: Upload more than one file at a time
by ikegami (Patriarch) on Nov 22, 2006 at 15:58 UTC

    Now, what have you tried to add another character to the list of allowed characters?

    A bug, if he tried to add it at the start (because it would make the - special) or after one of the slashes. A nice safe place to add a character in that class would be at the end.