> From: daniel kessler [mailto:[EMAIL PROTECTED] 
> So, how would I structure an "accept" so that it does this?  
> Also, which other types of files should I exclude?  If it's 
> an include-only list then I don't have to exclude but I don't 
> know which file types to enter ahead of time because I may 
> know a few of the file types ahead of time, but probably not 
> all of them.  So I'd rather exclude, I think.

I'd specify as many as you WANT to allow and let the users who have
issues with the "other" documents let you know.

<!--- in Application.cfm --->

//Allowable file MIME types
application.globalVars.acceptableMIMETypes = "";
ListAppend(application.acceptableMIMETypes,"application/excel",",");
ListAppend(application.acceptableMIMETypes,"application/vnd.ms-excel",",
");
ListAppend(application.acceptableMIMETypes,"application/x-excel",",");
ListAppend(application.acceptableMIMETypes,"application/x-msexcel",",");
ListAppend(application.acceptableMIMETypes,"application/x-mspowerpoint",
",");
ListAppend(application.acceptableMIMETypes,"application/vnd.ms-powerpoin
t",",");
ListAppend(application.acceptableMIMETypes,"application/powerpoint",",")
;
ListAppend(application.acceptableMIMETypes,"application/mspowerpoint",",
");
ListAppend(application.acceptableMIMETypes,"application/msword",",");
ListAppend(application.acceptableMIMETypes,"application/x-visio",",");
ListAppend(application.acceptableMIMETypes,"application/wordperfect",","
);
ListAppend(application.acceptableMIMETypes,"application/x-compressed",",
");
ListAppend(application.acceptableMIMETypes,"application/x-zip-compressed
",",");
ListAppend(application.acceptableMIMETypes,"application/pdf",",");
ListAppend(application.acceptableMIMETypes,"application/zip",",");      
ListAppend(application.acceptableMIMETypes,"multipart/x-zip",",");      
ListAppend(application.acceptableMIMETypes,"text/plain",",");
ListAppend(application.acceptableMIMETypes,"text/html",",");            
ListAppend(application.acceptableMIMETypes,"image/png",",");
ListAppend(application.acceptableMIMETypes,"image/pjpeg",",");
ListAppend(application.acceptableMIMETypes,"image/jpeg",",");
ListAppend(application.acceptableMIMETypes,"image/gif",",");
ListAppend(application.acceptableMIMETypes,"image/bmp",",");
ListAppend(application.acceptableMIMETypes,"image/x-windows-bmp",",");

<!--- on page where upload takes place --->

<cffile 
....
accept="#application.acceptableMIMETypes#">

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217820
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to