Hi Danika,
First of all, thank you again for your help, especially for restoring the deleted media files on AnkiWeb.
I have some great news: I finally managed to resolve all the missing media issues! Check Media now reports 0 missing files on both my Mac and iPad, and the images are displaying correctly on AnkiWeb as well.
During troubleshooting, I discovered some important details that might help identify a possible bug.
1. Case-sensitive filename mismatches
Many images had different capitalization in their HTML references compared with the actual filenames in collection.media.
For example:
- HTML:
Screenshot 2026-10-10 alle 19.05.17.png
- Actual file:
screenshot 2026-10-10 alle 19.05.17.png
I also found the opposite situation, where the HTML used screenshot but the actual file started with Screenshot.
The images appeared correctly on my Mac, but were missing on AnkiWeb and AnkiMobile. Correcting only the capitalization immediately fixed them after synchronization.
2. Reproducing the issue
I tested this with an image named PROVA_ANKI_02.png.
After inserting it into Anki using the attachment button, the stored filename and HTML reference were lowercase (prova_anki_02.png).
When I reused the original image in another note by dragging it from Finder, the HTML reference became PROVA_ANKI_02.png, while the existing media file remained lowercase.
I also found case mismatches in other images that had originally been inserted using Anki’s attachment button, so the problem may not be limited to drag-and-drop.
3. Image Occlusion notes were also affected
Initially, I corrected filenames using Find and Replace in the Back field.
However, some images remained missing because they were referenced in the Image field of Image Occlusion notes.
Repeating the targeted, case-sensitive replacements across all fields resolved those references too.
4. Final results
At one point, AnkiMobile reported 90 missing files.
By comparing the missing filenames with the actual files in collection.media, I identified the capitalization mismatches and corrected them using targeted regular-expression replacements.
The number of missing files went from 90 to 17, then to 2, and finally to 0.
The last two issues involved my test image and a separate malformed HTML fragment (><img alt=), which I repaired manually. I cannot confirm whether the malformed HTML was caused by the same bug.
5. My Anki environment
Anki 26.09.2 (bb0dd6d1) (ao)
Python 3.13.15
Qt 6.11.2 / PyQt 6.11.0
Platform: macOS-27.0.1-arm64-arm-64bit-Mach-O
Active add-ons:
- AMBOSS (0amboss_addon)
- Colorful Tags / Hierarchical Tags (594329229)
- Customize Keyboard Shortcuts (24411424)
- DeepL Translator (972129549)
- Enhance Main Window (877182321)
- Image Occlusion Enhanced (1374772155)
- Review Heatmap (1771074083)
- TagSelectorV2 (1022577188)
I have not yet tested whether the issue occurs with add-ons disabled, so I cannot rule out an add-on interaction.
Would you be able to bring these findings to the attention of the Anki developers, or advise me on the best place to report them?
I would be happy to provide further details or perform additional tests if needed.
Thank you again for your time and support. I really appreciate it!