Re: Re[2]: [PHP] File Upload

2002-12-14 Thread Jason Wong
On Saturday 14 December 2002 18:26, Paul Roberts wrote:
> the legend starts here
> http://www.php.net/manual/sk/features.file-upload.php
>
> "The _URL_ should point to a PHP file. The MAX_FILE_SIZE hidden field must
> precede the file input field and its value is the maximum filesize
> accepted. The value is in bytes."

I know, I've rftm :)

> it also notes
>
> "The MAX_FILE_SIZE is advisory to the browser. It is easy to circumvent
> this maximum. So don't count on it that the browser obeys your wish! The
> PHP-settings for maximum-size, however, cannot be fooled. "

Exactly. What that says to me is that it is optional. If you include it then 
the browser may or may not use it. But if you don't include it then your 
browser would allow you to upload any size of file.

However, the point is that a number of people seem to be implying that uploads 
only worked for them *after* they've added that MAX_FILE_SIZE thing. But 
there isn't any concrete evidence to show that the lack of the MAX_FILE_SIZE 
thing does have any effect on whether or not one can upload.

If you have spare time on your hands go through the archives for problems 
related to file uploads, invariably someone would suggest adding 
MAX_FILE_SIZE. To me, I think it's a load of cobblers, unless someone can 
show me otherwise :)

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
Preudhomme's Law of Window Cleaning:
It's on the other side.
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: Re[2]: [PHP] File Upload

2002-12-14 Thread Paul Roberts
the legend starts here 
http://www.php.net/manual/sk/features.file-upload.php

"The _URL_ should point to a PHP file. The MAX_FILE_SIZE hidden field must precede the 
file input field and its value is the maximum filesize accepted. The value is in 
bytes." 

it also notes

"The MAX_FILE_SIZE is advisory to the browser. It is easy to circumvent this maximum. 
So don't count on it that the browser obeys your wish! The PHP-settings for 
maximum-size, however, cannot be fooled. "


Paul Roberts
[EMAIL PROTECTED]

- Original Message - 
From: "Jason Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, December 14, 2002 8:53 AM
Subject: Re: Re[2]: [PHP] File Upload


On Saturday 14 December 2002 16:40, Tom Rogers wrote:

> Just clutching at straws as there was no mention of which browser was being
> used and it may have been needed as this is a browser directive. I have
> never had trouble uploading files with or without that setting.

Ah, so in your case you're quoting an urban legend ;-)

I would really like to hear of a case where an upload fails *just because of* 
not putting in that hidden element. I've asked on the list before but never 
got any definite responses.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
You can't hold a man down without staying down with him.
-- Booker T. Washington
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: Re[2]: [PHP] File Upload

2002-12-14 Thread Jason Wong
On Saturday 14 December 2002 16:40, Tom Rogers wrote:

> Just clutching at straws as there was no mention of which browser was being
> used and it may have been needed as this is a browser directive. I have
> never had trouble uploading files with or without that setting.

Ah, so in your case you're quoting an urban legend ;-)

I would really like to hear of a case where an upload fails *just because of* 
not putting in that hidden element. I've asked on the list before but never 
got any definite responses.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
You can't hold a man down without staying down with him.
-- Booker T. Washington
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php