joecooper Posted April 18, 2006 Share Posted April 18, 2006 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 Link to comment https://forums.phpfreaks.com/topic/7746-uploading-using/ Share on other sites More sharing options...
ypirc Posted April 18, 2006 Share Posted April 18, 2006 [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] Link to comment https://forums.phpfreaks.com/topic/7746-uploading-using/#findComment-28250 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.