I don't think Massimo's actually stops the upload just says that the file is too big
----- Original Message ----- From: "Mike Townend" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Wednesday, January 29, 2003 1:56 PM Subject: RE: Screening files before CFFile upload > GetHTTPRequestData() I believe will give you more information. > > > > -----Original Message----- > From: E. Keith Dodd [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 29, 2003 18:52 > To: CF-Talk > Subject: Re: Screening files before CFFile upload > > > Thanks, interesting article. > That would allow examination of size. > > I did a cfdump of cgi, but don't see anything that would give me anything > about extension of the actual file. Gives content-type of > multipart/form-data etc. Tried dump of form and only gives the .tmp file. > > Your suggestion takes care of one concern. I'm doubting can do things like > the original file's actual extension, on the server-side, at least. > Javascript, perhaps, but could work around. > > Thanks > ----- Original Message ----- > From: "Bryan F. Hogan" <[EMAIL PROTECTED]> > To: "CF-Talk" <[EMAIL PROTECTED]> > Sent: Wednesday, January 29, 2003 1:38 PM > Subject: RE: Screening files before CFFile upload > > > > http://markme.com/cantrell/weblog/index.cfm?m=1&d=28&y=2003 > > > > ============================================ > > Bryan F. Hogan > > Director of Internet Development > > Macromedia Certified ColdFusion MX Developer > > Digital Bay Media, Inc. > > 1-877-72DIGITAL > > ============================================ > > > > -----Original Message----- > > From: E. Keith Dodd [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, January 29, 2003 1:28 PM > > To: CF-Talk > > Subject: Screening files before CFFile upload > > > > > > Am wondering whether I can check for size, appropriate extension, etc. > > on files before they are uploaded using CFFile. Presently, I am > > uploading the files (with limited use of attribute accept), then using > > the CFFile output structure to delete any that don't fit my criteria. > > > > I am using MX and the standard html form for initial input with the > > enctype="multipart/form-data" and the input type="file". > > > > > > Searching the CFTalk archives, I found some referrals to being able to > check > > the extension of the file on the action page BEFORE using CFFile. One > > reference suggests using: <cfif not > > listfindnocase("gif,jpg,jpeg",listlast(form.myfilefield,"."))> > > to pick up any inappropriate extensions. > > (http://www.mail-archive.com/cf-talk@houseoffusion.com/msg124531.html) > > > > I find that I cannot do anything like that because the form field > > value is not the initial value in the field before submitting; it is > > one with a > .tmp > > extension, as in: > > > C:\CFusionMX\runtime\servers\default\SERVER-INF\temp\wwwroot-tmp\neotemp\114 > > 84.tmp > > (I assume the process creates a temporary stored file.) > > I get this result both locally on development MX (Using IE) and on > > remote > MX > > server--tested with both IE and Netscape. > > > > Am I missing something? Based on my results, I can NOT *examine* the > > file prior to cffile's upload? > > > > Thanks > > E. Keith Dodd > > Wings of Eagles Services > > www.wingserv.com > > > > > > - > > [This E-mail scanned for viruses by declude AntiVirus Software] > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4