RE: Uploading zero-length files

2002-09-30 Thread Yager, Brian T Contractor/Sverdrup

What are the other attributes to cgi that can be used?  Is ther one for the file
name?  Is this in any of the CF books out there?

Brian

-Original Message-
From: Greg Luce [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 26, 2002 9:37 AM
To: CF-Talk
Subject: RE: Uploading zero-length files


I've done this:

because someone told me about some 1 byte gif or something that causes
ddamage. Also to limit huge files.

-Original Message-
From: jgeorges [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, September 26, 2002 10:21 AM
To: CF-Talk
Subject: Uploading zero-length files

I am uploading a file (that the user has identified in an input
type=file) using CFFILE. CFFILE does not allow zero length files.

Is there a way I can get the filesize before attempting the upload?

TIA,

Sam





Changed your e-mail?  Keep your contacts!  Use this free e-mail change
of address service from Return Path.  Register now!


__
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Uploading zero-length files

2002-09-27 Thread S . Isaac Dealey

Ahh... thanks Jochem, that's really informative...

> Greg Luce wrote:
>> Isaac,
>>  I noticed that the content_length variable wasn't
>>  exactly the
>> size of the uploaded file, but close. I was thinking it
>> must also
>> included the rest of the form data. Could that be? I
>> think if the form
>> didn't have a lot of inputs the difference was less than
>> 1K so it was
>> good enough to restrict files over like 100K or less than
>> 2K.

> I would expect size differences to originate from a
> possible encoding of
> the uploaded file, which in turn makes me believe that the
> Content-Length >= file size.

> 
> 14.13 Content-Length

> The Content-Length entity-header field indicates the
> size of the
> entity-body, in decimal number of OCTETs, sent to the
> recipient or,
> in the case of the HEAD method, the size of the
> entity-body that
> would have been sent had the request been a GET.

> Content-Length= "Content-Length" ":" 1*DIGIT

> An example is

> Content-Length: 3495

> Applications SHOULD use this field to indicate the
> transfer-length of
> the message-body, unless this is prohibited by the
> rules in section
> 4.4.

> Any Content-Length greater than or equal to zero is a
> valid value.
> Section 4.4 describes how to determine the length of a
> message-body
> if a Content-Length is not given.

> Note that the meaning of this field is significantly
> different from
> the corresponding definition in MIME, where it is an
> optional field
> used within the "message/external-body" content-type.
> In HTTP, it
> SHOULD be sent whenever the message's length can be
> determined prior
> to being transferred, unless this is prohibited by the
> rules in
> section 4.4.

>  RFC 2616, HTTP/1.1


Isaac
Certified Advanced ColdFusion 5 Developer

www.turnkey.to
954-776-0046

__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Uploading zero-length files

2002-09-27 Thread S . Isaac Dealey

That's what I would expect ... My cms only takes in one file at a time and
there aren't any other inputs on that form, which would make restricting
those file sizes fairly easy. :) On a form with a bunch of textareas would
be a whole other ballgame...

Textareas are great ... You specify on the form "200 characters" so they
copy and paste in a 3000 word resume. :)

> Isaac,
>   I noticed that the content_length variable wasn't exactly
>   the
> size of the uploaded file, but close. I was thinking it
> must also
> included the rest of the form data. Could that be? I think
> if the form
> didn't have a lot of inputs the difference was less than
> 1K so it was
> good enough to restrict files over like 100K or less than
> 2K.

> Greg


Isaac
Certified Advanced ColdFusion 5 Developer

www.turnkey.to
954-776-0046

__
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Uploading zero-length files

2002-09-27 Thread jgeorges

I have been using IE 5.5 SP2, same behavior with Netscape 4.79

Sam




 --- On Thu 09/26, S.Isaac Dealey  wrote:
From: S.Isaac Dealey [mailto: [EMAIL PROTECTED]]
To: [EMAIL PROTECTED]
Date: Thu, 26 Sep 2002 17:59:48 -0400
Subject: Re: Uploading zero-length files

> That's interresting... I wonder if that's a browser specific behavior...
> Thanks for the info, I'll have to check it out.
> 
> > Isaac,
> 
> > Thanks for the response.
> 
> > Both content_length and http_content_length returned a
> > non-zero value.  What I noticed is the filename does not
> > get passed for zero length files.  So testing for the
> > existence of a filename solved my problem.
> 
> > Sam
> 
> 
> 
> >  --- On Thu 09/26, S.Isaac Dealey  wrote:
> > From: S.Isaac Dealey [mailto: [EMAIL PROTECTED]]
> > To: [EMAIL PROTECTED]
> > Date: Thu, 26 Sep 2002 10:54:02 -0400
> > Subject: Re: Uploading zero-length files
> 
> >> I think there are a couple cgi variables you can use to
> >> estimate it...
> >> cgi.content_length or maybe http_content_length ... not
> >> sure... If you
> >> have
> >> debugging turned on on the server, upload a file and then
> >> look at the
> >> list
> >> of cgi variables at the bottom of the page, the 1 or 2
> >> you want should be
> >> fairly easy to spot.
> >>
> >> > I am uploading a file (that the user has identified in
> >> > an input
> >> type=file)
> >> > using CFFILE. CFFILE does not allow zero length files.
> >>
> >> > Is there a way I can get the filesize before attempting
> >> > the upload?
> >>
> >>
> >> S. Isaac Dealey
> >> Certified Advanced ColdFusion 5 Developer
> >>
> >> www.turnkey.to
> >> 954-776-0046
> >>
> > __
> > 
> > Get the mailserver that powers this list at
> > http://www.coolfusion.com
> > FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
> > Archives:
> > http://www.mail-archive.com/cf-talk@houseoffusion.com/
> > Unsubscribe:
> > http://www.houseoffusion.com/index.cfm?sidebar=lists
> 
> 
> Isaac
> Certified Advanced ColdFusion 5 Developer
> 
> www.turnkey.to
> 954-776-0046
> 
> 
__
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Uploading zero-length files

2002-09-27 Thread Jochem van Dieten

Greg Luce wrote:
> Isaac,
>   I noticed that the content_length variable wasn't exactly the
> size of the uploaded file, but close. I was thinking it must also
> included the rest of the form data. Could that be? I think if the form
> didn't have a lot of inputs the difference was less than 1K so it was
> good enough to restrict files over like 100K or less than 2K.

I would expect size differences to originate from a possible encoding of 
the uploaded file, which in turn makes me believe that the 
Content-Length >= file size.


14.13 Content-Length

The Content-Length entity-header field indicates the size of the
entity-body, in decimal number of OCTETs, sent to the recipient or,
in the case of the HEAD method, the size of the entity-body that
would have been sent had the request been a GET.

Content-Length= "Content-Length" ":" 1*DIGIT

An example is

Content-Length: 3495

Applications SHOULD use this field to indicate the transfer-length of
the message-body, unless this is prohibited by the rules in section
4.4.

Any Content-Length greater than or equal to zero is a valid value.
Section 4.4 describes how to determine the length of a message-body
if a Content-Length is not given.

Note that the meaning of this field is significantly different from
the corresponding definition in MIME, where it is an optional field
used within the "message/external-body" content-type. In HTTP, it
SHOULD be sent whenever the message's length can be determined prior
to being transferred, unless this is prohibited by the rules in
section 4.4.

 RFC 2616, HTTP/1.1

Jochem

__
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Uploading zero-length files

2002-09-27 Thread Greg Luce

Isaac,
I noticed that the content_length variable wasn't exactly the
size of the uploaded file, but close. I was thinking it must also
included the rest of the form data. Could that be? I think if the form
didn't have a lot of inputs the difference was less than 1K so it was
good enough to restrict files over like 100K or less than 2K.

Greg

-Original Message-
From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, September 26, 2002 6:00 PM
To: CF-Talk
Subject: Re: Uploading zero-length files

That's interresting... I wonder if that's a browser specific behavior...
Thanks for the info, I'll have to check it out.

> Isaac,

> Thanks for the response.

> Both content_length and http_content_length returned a
> non-zero value.  What I noticed is the filename does not
> get passed for zero length files.  So testing for the
> existence of a filename solved my problem.

> Sam



>  --- On Thu 09/26, S.Isaac Dealey  wrote:
> From: S.Isaac Dealey [mailto: [EMAIL PROTECTED]]
> To: [EMAIL PROTECTED]
> Date: Thu, 26 Sep 2002 10:54:02 -0400
> Subject: Re: Uploading zero-length files

>> I think there are a couple cgi variables you can use to
>> estimate it...
>> cgi.content_length or maybe http_content_length ... not
>> sure... If you
>> have
>> debugging turned on on the server, upload a file and then
>> look at the
>> list
>> of cgi variables at the bottom of the page, the 1 or 2
>> you want should be
>> fairly easy to spot.
>>
>> > I am uploading a file (that the user has identified in
>> > an input
>> type=file)
>> > using CFFILE. CFFILE does not allow zero length files.
>>
>> > Is there a way I can get the filesize before attempting
>> > the upload?
>>
>>
>> S. Isaac Dealey
>> Certified Advanced ColdFusion 5 Developer
>>
>> www.turnkey.to
>> 954-776-0046
>>
> __
> 
> Get the mailserver that powers this list at
> http://www.coolfusion.com
> FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
> Archives:
> http://www.mail-archive.com/cf-talk@houseoffusion.com/
> Unsubscribe:
> http://www.houseoffusion.com/index.cfm?sidebar=lists


Isaac
Certified Advanced ColdFusion 5 Developer

www.turnkey.to
954-776-0046


__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Uploading zero-length files

2002-09-27 Thread jgeorges

Nat,

Thanks for the response.

Sam

 --- On Thu 09/26, Nat Papovich  wrote:
From: Nat Papovich [mailto: [EMAIL PROTECTED]]
To: [EMAIL PROTECTED]
Date: Thu, 26 Sep 2002 10:26:17 -0700
Subject: RE: Uploading zero-length files

> If all you want to do is avoid errors caused by uploaded zero-length
> files,
> you might try wrapping the  upload in cftry/cfcatch.
> 
> NAT
> 
> > -Original Message-
> > From: Chris Lofback [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, September 26, 2002 8:45 AM
> > To: CF-Talk
> > Subject: RE: Uploading zero-length files
> >
> >
> > Unless you go to a Java applet (or something similar), I don't
> > think there's
> > a way to get the file size info at the client end before uploading. 
> The
> > FileUpload form field doesn't provide file size and JavaScript
> > can't get any
> > info about files on the client system.
> >
> > Chris Lofback
> > Sr. Web Developer
> >
> > TRX Integration
> > 28051 US 19 N., Ste. C
> > Clearwater, FL  33761
> > www.trxi.com
> >
> >
> > > -Original Message-
> > > From: jgeorges [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, September 26, 2002 10:21 AM
> > > To: CF-Talk
> > > Subject: Uploading zero-length files
> > >
> > >
> > > I am uploading a file (that the user has identified in an
> > > input type=file) using CFFILE. CFFILE does not allow zero
> > > length files.
> > >
> > > Is there a way I can get the filesize before attempting the
> upload?
> > >
> > > TIA,
> > >
> > > Sam
> > >
> > >
> > >
> > >
> > > 
> > > Changed your e-mail?  Keep your contacts!  Use this free
> > > e-mail change of address service from Return Path.  Register
> now!
> > >
> > 
> 
__
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Uploading zero-length files

2002-09-26 Thread S . Isaac Dealey

That's interresting... I wonder if that's a browser specific behavior...
Thanks for the info, I'll have to check it out.

> Isaac,

> Thanks for the response.

> Both content_length and http_content_length returned a
> non-zero value.  What I noticed is the filename does not
> get passed for zero length files.  So testing for the
> existence of a filename solved my problem.

> Sam



>  --- On Thu 09/26, S.Isaac Dealey  wrote:
> From: S.Isaac Dealey [mailto: [EMAIL PROTECTED]]
> To: [EMAIL PROTECTED]
> Date: Thu, 26 Sep 2002 10:54:02 -0400
> Subject: Re: Uploading zero-length files

>> I think there are a couple cgi variables you can use to
>> estimate it...
>> cgi.content_length or maybe http_content_length ... not
>> sure... If you
>> have
>> debugging turned on on the server, upload a file and then
>> look at the
>> list
>> of cgi variables at the bottom of the page, the 1 or 2
>> you want should be
>> fairly easy to spot.
>>
>> > I am uploading a file (that the user has identified in
>> > an input
>> type=file)
>> > using CFFILE. CFFILE does not allow zero length files.
>>
>> > Is there a way I can get the filesize before attempting
>> > the upload?
>>
>>
>> S. Isaac Dealey
>> Certified Advanced ColdFusion 5 Developer
>>
>> www.turnkey.to
>> 954-776-0046
>>
> __
> 
> Get the mailserver that powers this list at
> http://www.coolfusion.com
> FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
> Archives:
> http://www.mail-archive.com/cf-talk@houseoffusion.com/
> Unsubscribe:
> http://www.houseoffusion.com/index.cfm?sidebar=lists


Isaac
Certified Advanced ColdFusion 5 Developer

www.turnkey.to
954-776-0046

__
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Uploading zero-length files

2002-09-26 Thread Nat Papovich

If all you want to do is avoid errors caused by uploaded zero-length files,
you might try wrapping the  upload in cftry/cfcatch.

NAT

> -Original Message-
> From: Chris Lofback [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 26, 2002 8:45 AM
> To: CF-Talk
> Subject: RE: Uploading zero-length files
>
>
> Unless you go to a Java applet (or something similar), I don't
> think there's
> a way to get the file size info at the client end before uploading.  The
> FileUpload form field doesn't provide file size and JavaScript
> can't get any
> info about files on the client system.
>
> Chris Lofback
> Sr. Web Developer
>
> TRX Integration
> 28051 US 19 N., Ste. C
> Clearwater, FL  33761
> www.trxi.com
>
>
> > -Original Message-
> > From: jgeorges [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, September 26, 2002 10:21 AM
> > To: CF-Talk
> > Subject: Uploading zero-length files
> >
> >
> > I am uploading a file (that the user has identified in an
> > input type=file) using CFFILE. CFFILE does not allow zero
> > length files.
> >
> > Is there a way I can get the filesize before attempting the upload?
> >
> > TIA,
> >
> > Sam
> >
> >
> >
> >
> > 
> > Changed your e-mail?  Keep your contacts!  Use this free
> > e-mail change of address service from Return Path.  Register now!
> >
> 
__
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Uploading zero-length files

2002-09-26 Thread Chad

http://www.infomentum.com/appletfile/data.asp

We are using the program and like it so far.



> -Original Message-
> From: Chris Lofback [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 26, 2002 10:45 AM
> To: CF-Talk
> Subject: RE: Uploading zero-length files
> 
> Unless you go to a Java applet (or something similar), I don't think
> there's
> a way to get the file size info at the client end before uploading.
The
> FileUpload form field doesn't provide file size and JavaScript can't
get
> any
> info about files on the client system.
> 
> Chris Lofback
> Sr. Web Developer
> 
> TRX Integration
> 28051 US 19 N., Ste. C
> Clearwater, FL  33761
> www.trxi.com
> 
> 
> > -Original Message-
> > From: jgeorges [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, September 26, 2002 10:21 AM
> > To: CF-Talk
> > Subject: Uploading zero-length files
> >
> >
> > I am uploading a file (that the user has identified in an
> > input type=file) using CFFILE. CFFILE does not allow zero
> > length files.
> >
> > Is there a way I can get the filesize before attempting the upload?
> >
> > TIA,
> >
> > Sam
> >
> >
> >
> >
> > 
> > Changed your e-mail?  Keep your contacts!  Use this free
> > e-mail change of address service from Return Path.  Register now!
> >
> 
__
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
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Uploading zero-length files

2002-09-26 Thread jgeorges

Isaac,

Thanks for the response.

Both content_length and http_content_length returned a non-zero value.  What I noticed 
is the filename does not get passed for zero length files.  So testing for the 
existence of a filename solved my problem.

Sam



 --- On Thu 09/26, S.Isaac Dealey  wrote:
From: S.Isaac Dealey [mailto: [EMAIL PROTECTED]]
To: [EMAIL PROTECTED]
Date: Thu, 26 Sep 2002 10:54:02 -0400
Subject: Re: Uploading zero-length files

> I think there are a couple cgi variables you can use to estimate it...
> cgi.content_length or maybe http_content_length ... not sure... If you
> have
> debugging turned on on the server, upload a file and then look at the
> list
> of cgi variables at the bottom of the page, the 1 or 2 you want should be
> fairly easy to spot.
> 
> > I am uploading a file (that the user has identified in an input
> type=file)
> > using CFFILE. CFFILE does not allow zero length files.
> 
> > Is there a way I can get the filesize before attempting the upload?
> 
> 
> S. Isaac Dealey
> Certified Advanced ColdFusion 5 Developer
> 
> www.turnkey.to
> 954-776-0046
> 
__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Uploading zero-length files

2002-09-26 Thread jgeorges

Thanks


 --- On Thu 09/26, Greg Luce  wrote:
From: Greg Luce [mailto: [EMAIL PROTECTED]]
To: [EMAIL PROTECTED]
Date: Thu, 26 Sep 2002 10:37:05 -0400
Subject: RE: Uploading zero-length files

> I've done this:
> 
> because someone told me about some 1 byte gif or something that causes
> ddamage. Also to limit huge files.
> 
> -Original Message-
> From: jgeorges [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, September 26, 2002 10:21 AM
> To: CF-Talk
> Subject: Uploading zero-length files
> 
> I am uploading a file (that the user has identified in an input
> type=file) using CFFILE. CFFILE does not allow zero length files.
> 
> Is there a way I can get the filesize before attempting the upload?
> 
> TIA,
> 
> Sam
> 
> 
> 
> 
> 
> Changed your e-mail?  Keep your contacts!  Use this free e-mail change
> of address service from Return Path.  Register now!
> 
> 
__
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Uploading zero-length files

2002-09-26 Thread Chris Lofback

Unless you go to a Java applet (or something similar), I don't think there's
a way to get the file size info at the client end before uploading.  The
FileUpload form field doesn't provide file size and JavaScript can't get any
info about files on the client system.

Chris Lofback
Sr. Web Developer

TRX Integration
28051 US 19 N., Ste. C
Clearwater, FL  33761
www.trxi.com


> -Original Message-
> From: jgeorges [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 26, 2002 10:21 AM
> To: CF-Talk
> Subject: Uploading zero-length files
> 
> 
> I am uploading a file (that the user has identified in an 
> input type=file) using CFFILE. CFFILE does not allow zero 
> length files.
> 
> Is there a way I can get the filesize before attempting the upload?
> 
> TIA,
> 
> Sam
> 
> 
> 
> 
> 
> Changed your e-mail?  Keep your contacts!  Use this free 
> e-mail change of address service from Return Path.  Register now!
> 
__
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Uploading zero-length files

2002-09-26 Thread S . Isaac Dealey

I think there are a couple cgi variables you can use to estimate it...
cgi.content_length or maybe http_content_length ... not sure... If you have
debugging turned on on the server, upload a file and then look at the list
of cgi variables at the bottom of the page, the 1 or 2 you want should be
fairly easy to spot.

> I am uploading a file (that the user has identified in an input type=file)
> using CFFILE. CFFILE does not allow zero length files.

> Is there a way I can get the filesize before attempting the upload?


S. Isaac Dealey
Certified Advanced ColdFusion 5 Developer

www.turnkey.to
954-776-0046
__
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Uploading zero-length files

2002-09-26 Thread Greg Luce

I've done this:

because someone told me about some 1 byte gif or something that causes
ddamage. Also to limit huge files.

-Original Message-
From: jgeorges [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, September 26, 2002 10:21 AM
To: CF-Talk
Subject: Uploading zero-length files

I am uploading a file (that the user has identified in an input
type=file) using CFFILE. CFFILE does not allow zero length files.

Is there a way I can get the filesize before attempting the upload?

TIA,

Sam





Changed your e-mail?  Keep your contacts!  Use this free e-mail change
of address service from Return Path.  Register now!

__
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists