The content length for a POST is returned in the HTTP request header, and
the actual data is in the body of the request.
It's not only outside of CF, but it wouldn't work with standard
web servers,
which even for CGI applications handle all of the data before the CGI
application gets the
What percentage? Which classes of users?
best, paul
At 05:30 AM 7/4/00 -0400, you wrote:
Many users won't / don't / can't have
javascript turned on.
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe
You'll probably find that a lot of the large corporate users will have Java
prohibited by their firewall, as it is seen as a security risk.
Particularly the latest version of Java which no longer resides in a
sandbox.
A lot of the larger corps. will disable it because they will lose the big
I was sure cgi.content_length wouldn't work either, but since I
hadn't tried the method I tested it to get some empirical data.
It is all server side. At least with WebSite, cgi.content_length
isn't available until after the file is transmitted.
This is true for any web server, as the
This is true for any web server, as the content length is in the
header for
the HTTP request which contains the file itself. It's a MIME thing; the
browser says, "Here's the data string, and it's x characters long."
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202)
Hi all ,
To do this use you can use the
CGI.CONTENT_LENGTH variable
Justin MacCarthy
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 03, 2000 3:04 AM
Subject: Re: limiting upload file size
I want to not upload at all if the file
I just had to do this recently. I found the tutorial here. Check it out:
http://www.teamallaire.com/tutorials/limitFileUploadSize.cfm
Joel
: To do this use you can use the
: CGI.CONTENT_LENGTH variable
:
: Justin MacCarthy
: To do this use you can use the CGI.CONTENT_LENGTH variable
I just had to do this recently. I found the tutorial here.
Check it out:
http://www.teamallaire.com/tutorials/limitFileUploadSize.cfm
Unfortunately, relying on CGI.CONTENT_LENGTH doesn't prevent a user from
uploading a file
I am permitting a user to upload their resume as an option when inquiring
for employment. This file should never exceed 1Mb and will usually be much
less. I'm using cffile to write the file to the server, then attaching it
with cfmail to go to my client.
How can I detect the size of the file
How can I detect the size of the file prior to upload to prevent someone
from maliciously uploading a 100MB file (or worse!). I know I can see it
with #file.filesize# but this is only after the upload, right?
I'm afraid you really can't do this with any server side programming (such
as CF).
I've never tried it, but you might be able to use JavaScript to do some
sort
of test on the file data before the upload completes. This has peaked my
interest, so I'm going to look into it... I'll post a follow up if I find
anything useful.
I did some searching of the comp.lang.javascript
I want to not upload at all if the file is bigger than 1MB. How can this be
done?
I can't think of a way to do this, but while I was looking around for a solution
I found this page about file upload fields which is quite informative:
http://www.hut.fi/u/jkorpela/forms/file.html
I hope this
From: Chris Giminez [EMAIL PROTECTED]
How can I detect the size of the file prior to upload to prevent someone
from maliciously uploading a 100MB file (or worse!). I know I can see it
with #file.filesize# but this is only after the upload, right?
As Seth mentioned, you are going to do
13 matches
Mail list logo