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
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
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 fo
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 interrest
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
ood 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 brows
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-len
s 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
: 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
> ca
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
>
:
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...
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 ca
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
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
fa
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 uploa
15 matches
Mail list logo