Thank you, all who replied. This helps me understand. I might give a
try to the workarounds some suggested.
Great newsgroup.
Jeff
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Chris wrote:
[error] = 2
And also gives you an error code.
Yes, I know and knew that. That's why the upload ultimately fails
(which is okay).
My point is that when a file's size exceeds the MAX_FILE_SIZE value,
I want the browser to (a) detect that it's too large BEFORE
attempting to upload it
-Original Message-
From: Jeff Cohan [mailto:[EMAIL PROTECTED]
Sent: 23 September 2007 00:02
To: php-general@lists.php.net
Subject: Re: [PHP] MAX_FILE_SIZE not working with file uploads
Chris wrote:
[error] = 2
And also gives you an error code.
Yes, I know and knew
Dan Parry wrote:
I might be wrong but this would be classed as
'exploitable'... Webservers should not be allowed
to read from or write to clients... Of course there
is ActiveX...
I think we're off the point.
My script is simply interrogating the value of the
$_FILES[userfile][size]
-Original Message-
From: Jeff Cohan [mailto:[EMAIL PROTECTED]
Sent: 23 September 2007 02:45
To: php-general@lists.php.net
Subject: Re: [PHP] MAX_FILE_SIZE not working with file uploads
Dan Parry wrote:
I might be wrong but this would be classed as
'exploitable
On Saturday 22 September 2007 7:44:55 pm Jeff Cohan wrote:
Dan Parry wrote:
I might be wrong but this would be classed as
'exploitable'... Webservers should not be allowed
to read from or write to clients... Of course there
is ActiveX...
I think we're off the point.
My script is
-Original Message-
From: Ray [mailto:[EMAIL PROTECTED]
Sent: 23 September 2007 02:25
To: php-general@lists.php.net
Subject: Re: [PHP] MAX_FILE_SIZE not working with file uploads
On Saturday 22 September 2007 7:44:55 pm Jeff Cohan wrote:
Dan Parry wrote:
I might be wrong
On Saturday 22 September 2007 7:39:01 pm Dan Parry wrote:
-Original Message-
From: Ray [mailto:[EMAIL PROTECTED]
Sent: 23 September 2007 02:25
To: php-general@lists.php.net
Subject: Re: [PHP] MAX_FILE_SIZE not working with file uploads
On Saturday 22 September 2007 7:44:55 pm
Jeff Cohan wrote:
Dan Parry wrote:
I might be wrong but this would be classed as
'exploitable'... Webservers should not be allowed
to read from or write to clients... Of course there
is ActiveX...
I think we're off the point.
My script is simply interrogating the value of the
Ray wrote:
On Saturday 22 September 2007 7:39:01 pm Dan Parry wrote:
This would be the exploitable 'feature' I mentioned... Client-side files
should never be readable
Dan
If the contents of a file were readable, I would definitely agree with you.
I'm not convinced that the ability to
Jeff Cohan wrote:
Dan Parry wrote:
I might be wrong but this would be classed as
'exploitable'... Webservers should not be allowed
to read from or write to clients... Of course there
is ActiveX...
I think we're off the point.
My script is simply interrogating the value of the
brian wrote:
Jeff Cohan wrote:
It seems that the server had to know the size of the file in order
to know it exceeded MAX_FILE_SIZE. So how can my script find out the
size?
Not at all. The user-agent is built to ignore files that exceed the
MAX_FILE_SIZE value.
Ack! I meant, The
The punchline question is: What am I missing?
Now for the details.
I have a form through which a user uploads image files. In the event
the chosen file exceeds the MAX_FILE_SIZE (which I have included as
a hidden form field immediately after the form tag), I want to abort
the upload process and
In the
_
More photos; more messages; more whatever – Get MORE with Windows Live™
Hotmail®. NOW with 5GB storage.
http://imagine-windowslive.com/hotmail/?locale=en-usocid=TXT_TAGHM_migration_HM_mini_5G_0907
--
PHP General Mailing
In the To: php-general@lists.php.net Date: Thu, 20 Sep 2007 14:45:36 -0500
From: [EMAIL PROTECTED] Subject: [PHP] MAX_FILE_SIZE not working with file
uploads The punchline question is: What am I missing? Now for the
details. I have a form through which a user uploads image files
Max file size is a hint to the browser and not all support it...you can't count
on it
bastien
To: php-general@lists.php.net Date: Thu, 20 Sep 2007 14:45:36 -0500 From:
[EMAIL PROTECTED] Subject: [PHP] MAX_FILE_SIZE not working with file
uploads The punchline question is: What am I
And here is the dump of the $_FILES array (which, notably, reports
zero as the size):
snip
[error] = 2
And also gives you an error code.
http://www.php.net/manual/en/features.file-upload.errors.php
--
Postgresql php tutorials
http://www.designmagick.com/
--
PHP General
17 matches
Mail list logo