Automattic / Automattic/jetpack
Tiled Gallery: handle failed uploads gracefully
- Dominant language
- PHP
- Stars
- 1.8k
- Forks
- 898
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 774
Description
### Impacted plugin
Jetpack
### Quick summary
If one tries to upload a disallowed image file type (e.g. `.avif`), it shows the image preview during "upload", and then the image disappears without any message.
Reported in p8oabR-1wt-p2#comment-8009.
### Steps to reproduce
See summary.
### A clear and concise description of what you expected to happen.
At minimum there should be some messaging to let the user know that not all the selected images were uploaded. In an ideal world, it'd list which file(s) failed.
### What actually happened
See summary.
### Impact
Some (< 50%)
### Available workarounds?
No but the platform is still usable
### Platform (Simple and/or Atomic)
_No response_
### Logs or notes
_No response_
Contributor guide
Research direction
Start by reproducing the failed disallowed-image upload in Jetpack's Tiled Gallery and trace the upload flow responsible for the preview disappearing. The issue names no files or tests; done means failed uploads show a clear message, ideally identifying each file that was rejected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- wordpress
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100