Replies: 1 comment 4 replies
-
|
Hi @johnjkr, could you please provide the markdown you’re using along with a screenshot of the behaviour? From my perspective, this seems a bit unusual. I think we should dig a bit deeper to resolve the Problem. One possible cause could be that there is still a local file path (e.g. C:...) in the markdown. That could lead to exactly this kind of issue, where the client machine tries to resolve the file locally instead of loading it from the server. Another possibility is that the server (or LeafWiki) is not returning the correct MIME type for the asset, which would prevent the browser from handling the file properly. I would also recommend using HTML5-supported formats where possible, as this is likely the most stable long-term solution. Otherwise, you would need to rely on external players, which can introduce additional dependencies, updates, and potential conflicts. If this is just a standard link, I wouldn’t restrict it to specific file types, since users may upload and reference a wide range of assets. LeafWiki now supports HTML5 audio and video playback, but currently only via explicit HTML, for example: Embedding via markdown like this is not supported at the moment: Thanks for raising this — it’s really helpful feedback for improving LeafWiki. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
When am internal link points to an asset whose file type is not natively supported or mapped to a specific application, the client machine's file manager/explorer/finder opens, regardless of client OS - I tested against Windows, Mac, iPad, and iOS. This seems unusual to me, as the files are expected to be on the server, not the client, so the client machine should not be trying to find the asset file.
This may be a Windows 11 issue on the machine we are using as the server. That machine does not have suitable default "open with applications" configured for files types - m4a, .mov - which are common to Apple though not native to Windows.
I am going to work around this by converting all those Apple-esque file types to Windows friendlier mp3 and mp4 types. All of my testing to date shows that mp3 and mp4 files work as expected for now by opening a new tab with a player for that file type. I saw for now because I have a separate issue/idea open that discussed support for embedding audio and video players into a Leafwiki page.
The ask there would whether there ways under consideration to define and embed a player for different file types within Leafwiki without relying on the OS? Or at least stop a read-only user from having a file manager dialog open up to find a media file that should be read-only and only on the server.
Beta Was this translation helpful? Give feedback.
All reactions