Catch unreadable media files on import and throw a proper error

Description

When media files are correctly placed but unreadable by the application (usually due to file permissions or SELinux) user PHP warnings are sprayed about and misleading errors stating that the media already exists in the database. A reasonable error message should be emitted.

Environment

None

Assignee

Seth

Reporter

Seth

Labels

None

Components

Fix versions

Affects versions

Priority

Major