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

Add support for WebDAV (owncloud/nextcloud among others) #245

Open
mconsoir opened this issue Nov 6, 2016 · 6 comments
Open

Add support for WebDAV (owncloud/nextcloud among others) #245

mconsoir opened this issue Nov 6, 2016 · 6 comments
Labels
feature Wants to add a new feature import/export Related to importing or exporting from or to HackMD in some format

Comments

@mconsoir
Copy link

mconsoir commented Nov 6, 2016

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!

@jackycute
Copy link
Member

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

@mconsoir
Copy link
Author

mconsoir commented Nov 7, 2016

+1

@ccoenen
Copy link
Contributor

ccoenen commented Nov 8, 2016

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.

@eppfel
Copy link

eppfel commented Nov 16, 2016

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
Copy link

eppfel commented Nov 22, 2016

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.

@jackycute jackycute added the feature Wants to add a new feature label Nov 29, 2016
@ccoenen ccoenen added the import/export Related to importing or exporting from or to HackMD in some format label Oct 6, 2017
@ccoenen ccoenen changed the title Add support for owncloud Add support for WebDAV (owncloud/nextcloud among others) Jun 26, 2018
@XVilka
Copy link

XVilka commented Sep 2, 2021

Had been any updates on this integration since?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Wants to add a new feature import/export Related to importing or exporting from or to HackMD in some format
Projects
None yet
Development

No branches or pull requests

5 participants