Thats why the function also checks for $_SERVER['argc'], which only exists if the script is executed in cli.
The script checks if the user hasn't reached the maximum storage on their account when accepting the ajax request and sending the file to the queue. It doesn't check if the file size is...