Codice PHP:
   if (filesize($filename) >= (4096 1024)) { // 4 megabytes
         
echo "Il file e' troppo grande";
         exit;
   }