How will you access the size of the uploaded file in PHP?

I am uploading a file which is an image. I want to get the size of that image every time in bytes only using PHP. I had done this by far


    echo $size;




PHP Php uploaded
  • 0
  • 0

Answers ( 1 )

  1. Using $_FILES['file']['size'] ? it provides the size in bytes of the uploaded file.

    • 0
    • 0

    Login to comment

Give an Answer

Login to answer