Home > Archive > PHP Language > September 2006 > File Size Limit
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| DoomedLung 2006-09-12, 6:57 pm |
| Hey
How can I check that a file (anytype) is within a size limit which has
been uploaded from a form?
Cheers
| |
| Danny Wong 2006-09-13, 7:57 am |
| Hi,
Check your PHP manual, search 'file upload' it contains the following
$_FILES['userfile']['name']
The original name of the file on the client machine.
$_FILES['userfile']['type']
The mime type of the file, if the browser provided this information. An
example would be "image/gif".
$_FILES['userfile']['size']
The size, in bytes, of the uploaded file.
$_FILES['userfile']['tmp_name']
The temporary filename of the file in which the uploaded file was stored on
the server.
$_FILES['userfile']['error']
Danny
"DoomedLung" <doomedlung@googlemail.com>
???????:1158071391.788395.302460@i3g2000cwc.googlegroups.com...
> Hey
>
> How can I check that a file (anytype) is within a size limit which has
> been uploaded from a form?
>
> Cheers
>
| |
| Koncept 2006-09-14, 3:57 am |
| In article <1158071391.788395.302460@i3g2000cwc.googlegroups.com>,
DoomedLung <doomedlung@googlemail.com> wrote:
> Hey
>
> How can I check that a file (anytype) is within a size limit which has
> been uploaded from a form?
>
> Cheers
>
$_FILES['userfile']['size']
The size, in bytes, of the uploaded file.
--
Koncept <<
"The snake that cannot shed its skin perishes. So do the spirits who are
prevented from changing their opinions; they cease to be a spirit." -Nietzsche
| |
| DoomedLung 2006-09-15, 9:56 pm |
|
Danny Wong wrote:[color=darkred]
> Hi,
>
> Check your PHP manual, search 'file upload' it contains the following
>
> $_FILES['userfile']['name']
> The original name of the file on the client machine.
>
> $_FILES['userfile']['type']
> The mime type of the file, if the browser provided this information. An
> example would be "image/gif".
>
> $_FILES['userfile']['size']
> The size, in bytes, of the uploaded file.
>
> $_FILES['userfile']['tmp_name']
> The temporary filename of the file in which the uploaded file was stored on
> the server.
>
> $_FILES['userfile']['error']
>
>
> Danny
>
>
> "DoomedLung" <doomedlung@googlemail.com>
> ???????:1158071391.788395.302460@i3g2000cwc.googlegroups.com...
Will do!
Thanks dude :)
|
|
|
|
|