Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Check for File Type Before Uploading Media for Avatar #233

Open
1 task done
ankitguptaindia opened this issue Sep 4, 2023 · 0 comments
Open
1 task done
Labels
help wanted type:bug Something isn’t working.

Comments

@ankitguptaindia
Copy link
Member

ankitguptaindia commented Sep 4, 2023

Location 1: Default Avatar Setting

Issue Description:

Any file type can currently be uploaded as an avatar in the file uploader within the Default Avatar Setting. This results in non-useful media being stored in the media library.

Expected Result:

The system should verify the file type before uploading it to the media library, ensuring that only supported image formats are accepted.

Steps to Reproduce:

  1. Navigate to the Default Avatar Setting.
  2. Click on the 'Choose Default Avatar' button.
  3. Attempt to upload an unsupported file type, such as .zip, .pdf, .heic, etc.
  4. Access the media library folder.
  5. Observe the uploaded files.
Choose.Default.Avatar.mp4

Location 2: Avatar Setting Within User Profiles

Issue Description:

When users upload unsupported file types as their avatars, it results in a broken display on the crop screen area, leading to a suboptimal user experience.

Steps to Reproduce:

  1. Access your user profile settings.
  2. Navigate to the Avatar Setting section.
  3. Attempt to upload an avatar file in an unsupported file format (e.g., .zip, .pdf, .heic).
  4. After selecting the unsupported file, proceed to the next step, which typically involves cropping or adjusting the avatar.
  5. Observe the display on the crop screen area.

Expected Result:

The avatar upload process should gracefully handle unsupported file formats, providing an informative message to the user.

Actual Result:

Currently, when an unsupported file type is uploaded as an avatar, it leads to a broken display on the crop screen area within the user profile, impacting the user experience.

Cros.Issue.mp4

Steps to Reproduce

Shared above

Screenshots, screen recording, code snippet

Screenshot 2023-09-04 at 1 45 26 PM

Environment information

No response

WordPress information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted type:bug Something isn’t working.
Projects
Status: To Do
Development

No branches or pull requests

4 participants