codimd icon indicating copy to clipboard operation
codimd copied to clipboard

Add support for WebDAV (owncloud/nextcloud among others)

Open mconsoir opened this issue 9 years ago • 6 comments
trafficstars

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!

mconsoir avatar Nov 06 '16 13:11 mconsoir

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

jackycute avatar Nov 07 '16 02:11 jackycute

+1

mconsoir avatar Nov 07 '16 06:11 mconsoir

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.

ccoenen avatar Nov 08 '16 21:11 ccoenen

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).

eppfel avatar Nov 16 '16 19:11 eppfel

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.

eppfel avatar Nov 22 '16 11:11 eppfel

Had been any updates on this integration since?

XVilka avatar Sep 02 '21 18:09 XVilka