I’m currently trying to show some images in Metabase dashboard.
It seems that the best (and only ?) solution is to use text card and markdown.
I have no problem to display an external image with : ![test_image](http:/myurl/icon.jpg)
Problem is i would like to display a local image and i couldn’t handle that.
This is what i tried ![test_image](/home/myuser/images/icon.jpg) ![test_image](./home/myuser/images/icon.jpg) ![test_image]((file:///home/myuser/images/icon.jpg)
I also tried to put my picture directly in the same directory with metabase.jar and call it with ![test_image](./icon.jpg) ![test_image](icon.jpg)
without success…
I would greatly appreciate some help if someone already handled this situation.
Hi @stabylo
You have to thank the browsers and their security. If you could do what you’re trying to do, then a bad-actor could do the same and gain access to your local files, without your knowledge.
While it’s possible to inject files into the Metabase.jar file, I would recommend that you setup web server (like Nginx, Apache, etc) and host your files on that - and you could even use it as a reverse proxy too.
This does work, but is not ideal, as we can’t use a filter on the url. Thus I’m my case I’m trying to as an additional chart that metabase can’t create, and without it being embedded in the report people looking at historical reports would see the wrong image as it gets overwritten. It’s also really hacky.
I’d wanted the url to append the current day to the file name.