I am using SAfileUp with ASP to upload files to a folder. I want to prevent users from uploading files that end with web extensions (htm, html, asp, shtml, cfm, cfml) and/or force them to only upload MS Office and image files (doc, xls, ppt, gif, jpg, jpeg). I am able to get the extension of the uploaded file via this formula:
ext = Mid(upl.UserFilename, InstrRev(upl.UserFilename, ".") + 1)
And I have a table in the db that lists both acceptable (tblGood_Ext) and unacceptable extensions (tblBad_Ext). But I'm not that good at arrays to write a function for this. Please help.