Affects Version/s: 1.6.2, 1.7.2, 1.8.1, 1.9.0
Component/s: Platform UI (Admin UI & Content UI)
Mac OSX 10.12.4 (16E195)
Safari 10.1 (12603.1.30.0.34)
If use File FieldType without a max file size restriction, it's impossible to upload a binary file larger than 500mb (exact size depends on browser).
It happens because PlatformUI tries to convert the file into base64 and file size exceeds max blob size.
Chrome & Opera:
Shows information about uploaded file. After click on Publish returns error message: An error occurred while publishing the draft
Nothing happens on UI. An error message is visible in the console. See attachment.
Browser crashes . If a draft was not saved before, all data from other fields will be lost.
Furthermore, a response from API contains an incorrect error message - problem isn't related with MimeType. MimeType can not be recognized because nothing was send to backend.
Update: Even if blob size limit isn't exceeded, then it is not possible to save binary file which is bigger than PHP memory_limit value.
Every binary file is converted to a string using base64, then it goes to the PlatformUI controller which handles it this way:
and finally, Symfony ends-up trying to do `file_get_contents` and assign the value to the property what is not possible due to lack of memory: