Closed keighrim closed 5 months ago
Another gain with this is that when the document path is not file://
scheme, as long as the mmif-python
(or mmif-docloc-
) can resolve the local FS path of the document, it will "just work" without additional handling.
New Feature Summary
Reading the documentation and re-thinking how the (rather hasty and hack) initial implementation of linkage of media files into the flask "static" directory for serving video/audio/text over generated HTML page, I once again realized it could be very frustrating experiment for users to
file://
(or other location schema) path in MMIF and how it's related to local FS and/or container FSAs briefly mentioned in #25, we can at least hide symlink part of the problem by dynamic linking. Here's implementation suggestion:
This way,
dpath
(real FS path) is always normalized intostatic/some_viz_di/doc_id.mp4
(for videos). This can be a big security improvement if thedpath
is very long complicated pathnamestatic/data
symlinks before running the appstatic/data
symlink inside the imageRelated
No response
Alternatives
No response
Additional context
No response