# Adding Media files to a Note

**URL:** <https://forums.ankiweb.net/t/adding-media-files-to-a-note/23685>\
**Category:** Help\
**Created:** [October 6, 2022, 10:31am UTC](https://forums.ankiweb.net/t/adding-media-files-to-a-note/23685 "2022-10-06T10:31:55Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![phspaelti](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/phspaelti/32/3284_2.png) [@phspaelti](https://forums.ankiweb.net/u/phspaelti)\
**Post date:** [October 6, 2022, 10:31am UTC](https://forums.ankiweb.net/t/adding-media-files-to-a-note/23685/1 "2022-10-06T10:31:55Z")

</div>

Creating notes and adding media (recorded sound files), I use the “paper clip” and select the sound file. When I do this, nothing is visibly shown as having been added to the note field. To be able to see that a sound file has been attached to the note I need to toggle the markup tag, or switch out and back in to the application. Only then does it make the attached media file visible.

What’s more, if I do not make the media visible, Anki will not let me add the note. It complains that the field is empty.

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [October 10, 2022, 4:42am UTC](https://forums.ankiweb.net/t/adding-media-files-to-a-note/23685/2 "2022-10-10T04:42:32Z")

</div>

I’m not able to reproduce this. Do you have any add-ons installed? If so, does disabling them help?

---

<div class="post-metadata">

**Author:** ![phspaelti](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/phspaelti/32/3284_2.png) [@phspaelti](https://forums.ankiweb.net/u/phspaelti)\
**Post date:** [October 10, 2022, 9:00am UTC](https://forums.ankiweb.net/t/adding-media-files-to-a-note/23685/3 "2022-10-10T09:00:21Z")

</div>

I do not have any add-ons installed. Not sure if this helps, but here a screen shot (video) of the behavior  
[https://youtu.be/Z9\_vkSaOHLw](https://youtu.be/Z9_vkSaOHLw)

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [October 12, 2022, 6:58am UTC](https://forums.ankiweb.net/t/adding-media-files-to-a-note/23685/4 "2022-10-12T06:58:43Z")

</div>

Thanks @phspaelti. The issue appears to have existed since at least 2.1.50, and can be avoided by using the Qt6 version.

@kleinerpirat the video shows another issue - field focus/outline appears to be broken in older Chromium versions - you can reproduce with ./tools/run-qt5.14/15

---

<div class="post-metadata">

**Author:** ![phspaelti](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/phspaelti/32/3284_2.png) [@phspaelti](https://forums.ankiweb.net/u/phspaelti)\
**Post date:** [October 12, 2022, 8:45am UTC](https://forums.ankiweb.net/t/adding-media-files-to-a-note/23685/5 "2022-10-12T08:45:03Z")

</div>

Thank you. I was unsure which version to try (My desktop is an Intel machine). I’ll give Qt6 a try.

---

<div class="post-metadata">

**Author:** ![kleinerpirat](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/kleinerpirat/32/19863_2.png) [@kleinerpirat](https://forums.ankiweb.net/u/kleinerpirat)\
**Post date:** [November 2, 2022, 7:32am UTC](https://forums.ankiweb.net/t/adding-media-files-to-a-note/23685/6 "2022-11-02T07:32:02Z")

</div>

Webviews don’t load on Qt5 for me - I couldn’t test this.

But [Add back thick field focus border by kleinerpirat · Pull Request #2160 · ankitects/anki · GitHub](https://github.com/ankitects/anki/pull/2160) will probably fix the issue, as I switched from the pseudo element approach to a much simpler trick with `outline`.

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [November 2, 2022, 11:48am UTC](https://forums.ankiweb.net/t/adding-media-files-to-a-note/23685/7 "2022-11-02T11:48:52Z")

</div>

Could your Qt5 issue be this one? [Blank Main Window - Anki Manual](https://docs.ankiweb.net/platform/linux/blank-window.html)

---

<div class="post-metadata">

**Author:** ![kleinerpirat](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/kleinerpirat/32/19863_2.png) [@kleinerpirat](https://forums.ankiweb.net/u/kleinerpirat)\
**Post date:** [November 3, 2022, 10:44am UTC](https://forums.ankiweb.net/t/adding-media-files-to-a-note/23685/8 "2022-11-03T10:44:32Z")

</div>

Ah yes, setting `--no-sandbox` as an env var instead of command line argument solved the blank webview issue for me.

The field focus outline works, altough it isn’t rounded like it is on Qt6 - but that’s minor. Add-on buttons are broken though: ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/3/37f057135748f8496e3eee556b7309d82db80702.png)

**Edit:** Found the cause: The `inset` shorthand property for `top`, `right`, `bottom`, `left` isn’t supported on Qt5’s web engine. ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/a/af2bffb892a6954c835c3d966ea166d5e5830b5b.png)

I’ll check if there are other differences too.

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [November 4, 2022, 12:26am UTC](https://forums.ankiweb.net/t/adding-media-files-to-a-note/23685/9 "2022-11-04T00:26:30Z")

</div>

Ah, we’ve been stung by insets before too: [Tag input hidden on Qt5 build · Issue #1768 · ankitects/anki · GitHub](https://github.com/ankitects/anki/issues/1768)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [May 1, 2023, 3:59am UTC](https://forums.ankiweb.net/t/adding-media-files-to-a-note/23685/10 "2023-05-01T03:59:53Z")

</div>

Closed on May 1, 2023, 3:59am UTC


