Advice on how to accept custom file types? #618
-
Hi, I host a Szurubooru instance for an animation and art creation program community. My site allows community members to post art and animation exported from the program, but I would like to also support posting assets made with the program. Specifically I'm looking to accept 3 proprietary file types: I may down the line want to write custom code to render a preview for these filetypes, but for now the behavior I think could work is the following:
I have a very rough idea of how to start developing this functionality, but if anyone has any advice before I get into the weeds of this, it would be much appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I imagine a self hosted file sharing platform might be better, if you do want to fork szurubooru then I'm sure there are plenty of resources that would allow you to handle those file types. If it's based on pivot then there should be open source players and renderers that can handle those file types. This is way beyond the scope of szurubooru and the Devs here probably won't be able to help other than possibly help point you in the right direction. Would be less work and more efficient to petition to their (sticknode) developers to add gallery functionality to their site or hunt through their forums for like minded individuals. Otherwise search the szurubooru issues and code for how filetypes are handled and how you can pipe them to a renderer or encoder. |
Beta Was this translation helpful? Give feedback.
-
I traced the flow of uploads from the uploads tpl to where filetypes are actually handled and extended it to handle .nodes, .nodemc, and .stknds. My implementation is a little hacky, but it works, so I'm satisfied :) |
Beta Was this translation helpful? Give feedback.
I traced the flow of uploads from the uploads tpl to where filetypes are actually handled and extended it to handle .nodes, .nodemc, and .stknds. My implementation is a little hacky, but it works, so I'm satisfied :)