Gossamer Forum
Home : Products : Gossamer Links : Discussions :

What would the regex be for only allowing......

Quote Reply
What would the regex be for only allowing......
Hello again,
What would be a proper regex to only allow .exe or .zip or .rar files to be uploaded via file uploads in Glinks 3.0.4 I dont want people uploading text files or spreadsheets etc, each file is checked regardless but it may help a little.
Quote Reply
Re: [aph] What would the regex be for only allowing...... In reply to
Hi,

This should do it;

\.(zip|rar|exe)$

Hope that helps.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!