Re: [PHP] MAX_FILE_SIZE not working with file uploads

2007-09-23 Thread Jeff Cohan
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

Re: [PHP] MAX_FILE_SIZE not working with file uploads

2007-09-22 Thread Jeff Cohan
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

RE: [PHP] MAX_FILE_SIZE not working with file uploads

2007-09-22 Thread Dan Parry
-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

Re: [PHP] MAX_FILE_SIZE not working with file uploads

2007-09-22 Thread Jeff Cohan
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]

RE: [PHP] MAX_FILE_SIZE not working with file uploads

2007-09-22 Thread Dan Parry
-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

Re: [PHP] MAX_FILE_SIZE not working with file uploads

2007-09-22 Thread Ray
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

RE: [PHP] MAX_FILE_SIZE not working with file uploads

2007-09-22 Thread Dan Parry
-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

Re: [PHP] MAX_FILE_SIZE not working with file uploads

2007-09-22 Thread Ray
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

Re: [PHP] MAX_FILE_SIZE not working with file uploads

2007-09-22 Thread Jim Lucas
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

Re: [PHP] MAX_FILE_SIZE not working with file uploads

2007-09-22 Thread brian
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

Re: [PHP] MAX_FILE_SIZE not working with file uploads

2007-09-22 Thread brian
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

Re: [PHP] MAX_FILE_SIZE not working with file uploads

2007-09-22 Thread brian
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

[PHP] MAX_FILE_SIZE not working with file uploads

2007-09-20 Thread Jeff Cohan
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

RE: [PHP] MAX_FILE_SIZE not working with file uploads

2007-09-20 Thread Instruct ICC
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

RE: [PHP] MAX_FILE_SIZE not working with file uploads

2007-09-20 Thread Instruct ICC
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

RE: [PHP] MAX_FILE_SIZE not working with file uploads

2007-09-20 Thread Bastien Koert
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

Re: [PHP] MAX_FILE_SIZE not working with file uploads

2007-09-20 Thread Chris
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