upload file names
Hey Ray
How would you go about stopping a file upload that has a file name with spaces and/or 'illegal' characters?
Cheers
Jamie
Hey Ray
How would you go about stopping a file upload that has a file name with spaces and/or 'illegal' characters?
Cheers
Jamie
You can use server validation to validate the name.
ok gotcha. with the alphanumeric option, if I wanted to add - and _ in the additional field, do they need to be comma separated ?
Ok cool thanks. Also, due to the laptop dpi issue, I can't see what the checkbox is for below the additional options ....
Thanks Ray. Have tried to do this on an insert page that requires the user to add a main image and the option to add 4 further sub images.
However, the validation is failing on the optional sub images even when the main image is ok.
Have attached the insert page
It looks like you didn't check the "allow blank" option for the fields you want optional.
the final "true" in those lines needs to be "false".. so line 31 would end with: false,6);
ah ok thanks.
now the main image is failing validation regardless if the file name is 'good' or not.....
That is probably because the image always has a "." in it and you aren't allowing the "."
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.