https://sangkrit.net/creating-file-upload-size-and-upload-time-restriction-in-php/
Restricting Image Upload Size and Upload Time Using PHP