fsi-open / files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

When uploaded file is bigger than `upload_max_filesize` then ambiguous exception is thrown

chives opened this issue · comments

If uploaded file is bigger than upload_max_filesize then SymfonyFileToWebFileTransformer tries to check file's mime-type which throws exception with message The "" file does not exist or is not readable. We should try to change this behaviour in order to give better error message to the user and/or developer

The solution would be to create an empty file object with only the error code and whatever information is available in the UploadedFile object.

Solved by #60