Greetings Perl People:
I am looking for 2 regex's for file uploads.
1.) a regex to prevent anything that is NOT a .jpg, .png or .gif from being loaded to the server.
2.) an "enumeration" regex, which will (if a given filename for a given filetype already exists on the server) add a number to the end of the filename to prevent the file from being overwritten.
More questions may soon follow! :)
TIA!
BH
In reply to Need 2 Regex's by BlenderHead
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |