Skip to content

[2.1]: Uploading avatars fails when neither Fileinfo nor Exif extensions are installed #8907

@Sesquipedalian

Description

@Sesquipedalian

Basic Information

When neither the Fileinfo extension nor the Exif extension is installed, all images that a member tries to upload as an avatar will be rejected with the message "The avatar you have selected is not a valid image file."

Steps to reproduce

  1. Disable both the Fileinfo extension and the Exif extension in your PHP configuration.
  2. Attempt to upload a valid avatar image.

Expected result

The avatar image is accepted.

Actual result

"The following errors occurred when trying to save your profile:
The avatar you have selected is not a valid image"

Version/Git revision

2.1.6

Database Engine

All

Database Version

No response

PHP Version

No response

Logs

Additional Information

Reported here

Metadata

Metadata

Labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions