The script does not limit based on file size, the max upload file size is set in the php.ini file for the upload_max_filesize setting.
There is more info on this setting on the php page:
ini.core.php
The default value of this setting is 2M. As for the errors that may occur during the file upload there is a binding for that in the Upload file bindings, it is called error message.