File upload error "Files must be less than x MB" despite file being smaller than x I have a file field called Video for a content type called Tutorial Video.
My settings are thus:

Allowed file extensions:
txt, mp4
Maximum upload size:
[empty]

The maximum upload section also has this text:

Enter a value like &quot;512&quot; (bytes), &quot;80 KB&quot; (kilobytes) or &quot;50 MB&quot; (megabytes) in order to restrict the allowed file size. If left empty the file sizes will be limited only by PHP's maximum post and file upload sizes (current limit 100 MB).

When I try to upload a 62MB MP4 video the Video field has (underneath the File Upload button) the following text:

Files must be less than 100 MB.
Allowed file types: txt mp4.

After I select the file and hit upload I get the following error message:

An unrecoverable error occurred. The uploaded file likely exceeded the maximum file size (100 MB) that this server supports.

I have requested my host upgrade my limits. They said they have set it to 250mb. I edited my php.ini and changed that to 500mb. I'm lost...
The upload_max_filesize parameter in php.ini (or accessed elsewhere) must follow the file size naming that PHP understands:

upload_max_filesize = 100MB  // NO
upload_max_filesize = 100 MB // NO
upload_max_filesize = 100 M  // NO
upload_max_filesize = 100M   // YES


Also keep in mind that many shared hosts will cap this value at a higher level.  So ask your host and use something reasonable like 25M or 50M - just putting in a ridiculously high value like 500M won't necessarily help you.