-
Notifications
You must be signed in to change notification settings - Fork 55
Description
About me
This issue is raised on behalf or NRK.
Issue
Note: I'm opening this issue for general awareness. This doesn't affect NRK's use cases at the moment, so we wont look into fixing it anytime soon.
Summary
Since Sofie supports multiple blueprints, uploaded blueprints-assets should be stored in separate folders, to avoid collisions.
Details
There is an endpoint in Sofie Core (see meteor/server/api/blueprints/http.ts) that can be used to upload asset files, such as icons, fonts etc..
Currently, all assets are stored under “assets/“, no matter what blueprint they came from. This can be an issue where there are multiple blueprints and they have different versions of the same file.
To ensure data consistency, the assets should be stored under a path that is based on a “blueprintId”, and all references to the files should be prefixed to point to the correct folder.