Hi,
I'm trying to make sure people don't upload files with a space in - is there a good way to do this via Javascript?
I'm already doing it in the Perl script, with:
^([%\w-_]+\.(?:jpe?g|JPE?G|gif|GIF|png|PNG)|)$
....but I'm a little unsure as to how to convert this to JS (basically, people are moaning they don't get a warning until after they have uploaded the file [which can sometimes be quite big, and thus take a little while to upload =)])
TIA
Andy
I'm trying to make sure people don't upload files with a space in - is there a good way to do this via Javascript?
I'm already doing it in the Perl script, with:
^([%\w-_]+\.(?:jpe?g|JPE?G|gif|GIF|png|PNG)|)$
....but I'm a little unsure as to how to convert this to JS (basically, people are moaning they don't get a warning until after they have uploaded the file [which can sometimes be quite big, and thus take a little while to upload =)])
TIA
Andy