Codimd: Add support for WebDAV (owncloud/nextcloud among others)

Created on 6 Nov 2016  路  5Comments  路  Source: hackmdio/codimd

Dear all,
it would be awesome to support file upload for owncloud instances...
curl -u user:password --upload-file "filename.md" "https://server/remote.php/webdav/"

Many thanks!

feature imporexport

Most helpful comment

I love hackmd; perfect tool, use it nearly every day. One option would be to integrate hackmd as an app for nextcloud (there was/is an etherpad integration).

All 5 comments

Hi @mconsoir,
This issue seems like to request for supporting export note to ownCloud, am I right?

+1

There's WebDAV-Abstractions for JavaScript. I have used webdav-fs, which worked fine for my use case. Here's their write file example. The export itself shouldn't be a problem at all.

I think the harder problems are user interface questions:

  • how/where do I store username/password/owncloud instance?

    • how do I keep the owncloud password secure? (this is a big one!)

  • how do I mark a pad for exporting?
  • when/how often do I upload a change?
  • how do we notify a user about possible errors?

Those _could_ be a user setting, I guess? But this is just wild guesses right now.

I love hackmd; perfect tool, use it nearly every day. One option would be to integrate hackmd as an app for nextcloud (there was/is an etherpad integration).

how do I mark a pad for exporting?

For a start, it should be a simple export, like the github and other options.
bildschirmfoto 2016-11-22 um 00 25 11

when/how often do I upload a change?

Of course it would be nice to have a two-way sync, but this might be a bigger issue.

how/where do I store username/password/owncloud instance?
how do I keep the owncloud password secure? (this is a big one!)

Best would be to not store it at all, with SSO. There is a feature request at nextcloud/server#716, but no roadmap, yet.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

qiuwch picture qiuwch  路  3Comments

sagesharp picture sagesharp  路  4Comments

almereyda picture almereyda  路  4Comments

mxmo0rhuhn picture mxmo0rhuhn  路  3Comments

ccoenen picture ccoenen  路  4Comments