Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for third party formats on WebDAV #146

Open
rosensvv opened this issue Nov 15, 2021 · 2 comments
Open

Support for third party formats on WebDAV #146

rosensvv opened this issue Nov 15, 2021 · 2 comments
Assignees

Comments

@rosensvv
Copy link

I tried loading and saving a .mm (Freemind) formatted mindmap using the webDAV option, but it doesn't work, it tries to read is as it's native json. It would be really nice if the option to specify a format is also available on the webDAV storage backend, even better if it remembers/autodetects the type (maybe using the file extension?).

@ondras
Copy link
Owner

ondras commented Nov 16, 2021

Good point. The main question here is what is the preferred detection mechanism:

  1. explicit: show a selectbox so the user can pick one
  2. correct: use the Content-type response header
  3. easy: check the file extension

The first approach gives user the most control, but requires explicit interaction. The second one should be preferred in the theoretical case your WebDAV backend is extra-properly configured and respects mime types for individual mind map formats. I am not even sure they have mime types :)

So we are probably going to end with the last one. Cheers to Redmond! 😃

@ondras ondras self-assigned this Nov 16, 2021
@rosensvv
Copy link
Author

I can only add that maybe it would be a good idea to match the loaded mindmap by default, ie if the user loads a .mm mindmap from a webDAV source, pressing the save icon would default to overwriting the loaded map on the same source, matching the format. If the "save as" prompt is invoked then one can use an explicit selectbox to specify (although the file extension approach is totally valid as well, there should be at least a table of format extensions shown in the same menu).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants