notes icon indicating copy to clipboard operation
notes copied to clipboard

Notes not displaying images

Open charlescurley opened this issue 7 months ago • 5 comments

Image

Image Image Image

The Notes app and the IOS app both fail to load images correctly.

I have valid markdown. I can run my note through the program markdown (version 1.0.1) to produce valid HTML, which Firefox and Vivaldi both display correctly. However the Notes Nextcloud app and the Notes app for IOS both fail to load the images. Other markdown markup is translated correctly.

Here is the markdown source. The images are in the same directory as the markdown source.


Applications are open.

[Wyoming DoE ESA page](https://edu.wyoming.gov/parents/education-savings-accounts/)

![esas](wyo.eod.esas.png "Wyoming Department of Education ESAs")

[ESA Family Handbook](https://edu.wyoming.gov/wp-content/uploads/2025/04/ESA-Family-Handbook.pdf)

![ESAFamilyHandbook](ESA-Family-Handbook.qr.png "ESA Family Handbook")

## Applicants should prepare the following documentation

* Parent and child Social Security numbers.
* Child’s birth certificate or passport.
* Proof of Wyoming residency.
* Recent tax returns showing Adjusted Gross Income or proof of TANF/SNAP enrollment (Prekindergarten applications only).

This approval notification may not arrive before June 25. ESA funds will be available to use in July.

[HB0199 - Steamboat Legacy Scholarship Act.](https://www.wyoleg.gov/Legislation/2025/HB0199)

![QR code:HB1992025](hb199.2025.png "HB 199 (2025)")

If I can find a way to add the images to this report, I will. They are QR codes, and work correctly when I generate the HTML with markdown and display in a browser.

Also see https://help.nextcloud.com/t/notes-not-displaying-images/225051

Steps to reproduce

  1. Edit with an external application. I use Emacs' Markdown mode. 2.Insert a correctly formed markdown link to an image, and supply that image. 3.View the note in the Nextcloud app and in the IOS Notes app.

Expected behaviour

The images should load in the app.

Actual behaviour

The images are marked "failed to load"

Screenshots

If applicable, add screenshots to help explain your problem.

Server

Please complete the following information.

  • Notes app version: 4.12.0
  • Nextcloud version: Nextcloud Hub 10 (31.0.4)
  • OS: Debian Linux 12 (Bookworm)
  • Web server: 2.4.62-1~deb12u2
  • PHP version: 8.2.28
  • Database: 3.40.1 2022-12-28 14:03:47

Nextcloud configuration:

``` If you have access to your command line run e.g.: sudo -u www-data php occ config:list system from within your Nextcloud installation folder ``` # cd /var/www/nextcloud/ && su www-data -c '/usr/bin/php occ config:list system' { "system": { "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "nextcloud", "nextcloud.localdomain", "localhost", "hawk", "hawk.localdomain", "nextcloud.curleynet.mywire.org:17800" ], "datadirectory": "***REMOVED SENSITIVE VALUE***", "dbtype": "sqlite3", "version": "31.0.4.1", "overwrite.cli.url": "http:\/\/localhost", "dbname": "***REMOVED SENSITIVE VALUE***", "installed": true, "instanceid": "***REMOVED SENSITIVE VALUE***", "maintenance": false, "default_phone_region": "US", "theme": "", "loglevel": 2, "logtimezone": "America\/Denver", "logfile": "\/var\/log\/nextcloud\/nextcloud.log", "mail_domain": "***REMOVED SENSITIVE VALUE***", "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_smtpmode": "smtp", "mail_sendmailmode": "smtp", "mail_smtpauth": 1, "mail_smtpauthtype": "LOGIN", "mail_smtphost": "***REMOVED SENSITIVE VALUE***", "mail_smtpname": "***REMOVED SENSITIVE VALUE***", "mail_smtppassword": "***REMOVED SENSITIVE VALUE***", "app_install_overwrite": [ "calendar" ], "memcache.local": "\\OC\\Memcache\\APCu", "trashbin_retention_obligation": "auto, 90", "maintenance_window_start": 19, "filelocking.enabled": true, "memcache.locking": "\\OC\\Memcache\\Redis", "redis": { "host": "***REMOVED SENSITIVE VALUE***", "port": 0, "timeout": 0 } } }

Client

Please complete the following information.

  • Browser (incl. version): Vivaldi 7.3.3635.12 stable
  • OS: Debian 12 (Bookworm)

Log files

Add relevant parts of your nextcloud.log and/or your browser's JavaScript console here.

charlescurley avatar May 15 '25 22:05 charlescurley

Debian has several PHP packages for working with markdown. Should I have one or more installed on my server? I have none.

charles@hawk:~$ pre php | grep -i markdown
charles@hawk:~$ apt-cache search php | grep -i markdown
golang-github-yuin-goldmark-dev - CommonMark compliant and extensible Markdown parser written in Go
libmarkdown-php - PHP library for rendering Markdown data
php-league-commonmark - Markdown parser based on the CommonMark JS reference implementation
php-league-html-to-markdown - An HTML-to-markdown conversion helper for PHP
php-parsedown - Parser for Markdown
php-parsedown-extra - Markdown Extra extension for Parsedown
php-twig-markdown-extra - A Twig extension for Markdown
ruby-bluefeather - Extend Markdown Converter written in Ruby
charles@hawk:~$ 

charlescurley avatar May 16 '25 17:05 charlescurley

OK, it might help if the software were looking in the correct place. The console for that page indicates a 404 on the URL

GET https://nextcloud.curleynet.mywire.org:17800/remote.php/dav/files/charles/wyo.eod.esas.png 404 (Not Found)

The file is located at

root@hawk:/var/local/nc.data# ll charles/files/Notes/wyo.eod.esas.png 
-rw-r--r-- 1 www-data www-data 481 May 15 14:56 charles/files/Notes/wyo.eod.esas.png
root@hawk:/var/local/nc.data# 

Copying the images up a directory lets them show up.

charlescurley avatar May 16 '25 23:05 charlescurley

Correction! It appears that Notes v. 4.12.1 does not solve this issue. I did not test extensively, though. Thank you.

charlescurley avatar May 29 '25 20:05 charlescurley

Re-opening. I did not adequately test earlier. Sorry.

charlescurley avatar Jun 22 '25 21:06 charlescurley

Dear @charlescurley,

Thank you for reporting this issue to us! We will have a look on it!

JuliaKirschenheuter avatar Jul 25 '25 15:07 JuliaKirschenheuter