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!
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:
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.

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