When you upload file using html form component input type=file name=fupload then you can write following code on the receiving page to get the file information <?php echo $_FILE["fupload"]["size"] ; echo $_FILE["fupload"]["name"] ; echo $_FILE["fupload"]["type"] ; ?> Code (markup): type will give you mime type information rest gives you size and name of the file