Jump to content

Archived

This topic is now archived and is closed to further replies.

joecooper

Uploading using...

Recommended Posts

i think that this is how u upload files...

copy($myimage,$uploaddir.$filename)

but i want to limit the size of the file. how is this done?
Thanks

Share this post


Link to post
Share on other sites
[a href=\"http://us3.php.net/manual/en/features.file-upload.php\" target=\"_blank\"]http://us3.php.net/manual/en/features.file-upload.php[/a]
[a href=\"http://us3.php.net/manual/en/function.is-uploaded-file.php\" target=\"_blank\"]http://us3.php.net/manual/en/function.is-uploaded-file.php[/a]
[a href=\"http://us3.php.net/manual/en/function.move-uploaded-file.php\" target=\"_blank\"]http://us3.php.net/manual/en/function.move-uploaded-file.php[/a]
[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]
The contents of $_FILES from the example form is as follows. Note that this assumes the use of the file upload name userfile, as used in the example script above. This can be any name.

$_FILES['userfile']['size']

The size, in bytes, of the uploaded file.
[/quote]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.