Code Monkey home page Code Monkey logo

Comments (9)

cracker0dks avatar cracker0dks commented on July 26, 2024

Have to take a look at webdav and a good solution. Definitely on the roadmap.

from whiteboard.

e-alfred avatar e-alfred commented on July 26, 2024

Since your app makes use of Node.js, maybe the webdav-fs module would make sense:

https://nextcloud.com/blog/using-webdav-fs-to-access-files-in-nextcloud/

from whiteboard.

cracker0dks avatar cracker0dks commented on July 26, 2024

Yeah but maybe we don't need the way browser->sever->nextcloud and can go straight browser->nextcloud. https://www.npmjs.com/package/webdav-client has a "Web browser compatibility" but I need to invetigate both solutions first.

from whiteboard.

e-alfred avatar e-alfred commented on July 26, 2024

There is also this library if it can be more Nextcloud/Owncloud-centric:

https://www.npmjs.com/package/nextcloud-node-client

from whiteboard.

cracker0dks avatar cracker0dks commented on July 26, 2024

Thought a bit more about this thing and I'm not sure it's a good idea to include this function into this project. The main problem: It's not done by just add a webdav lib. We would need a file explorer as well, and a modal function on top for the explorer.
Then all the error handling (incorrect user config), and making sure you can't DOS things with it...

On the other hand the user just could save/load files from his nextcloud synced folder instead and would be done.
You agree?

from whiteboard.

e-alfred avatar e-alfred commented on July 26, 2024

Sorry for the delay in responding here.

Maybe it would be okay to leave away a complete file explorer and instead only tell the user to create a folder on a Webdav server so they can provide the complete Webdav URL to that folder like http://webdavserver.domain/remote.php/webdav/mywhiteboardfolder/?

The advantage of saving directly to Nextcloud would be the absence of any dependency installed directly to the desktop system like the sync client or other software.

from whiteboard.

cracker0dks avatar cracker0dks commented on July 26, 2024

Hey,
finally added webdav save. It's alpha at the moment so you have to checkout the "webdav" branch.
To activate it do:
client: add "webdav=true" as get parameter to the url
server: add "--webdav=true" as start parameter

what do you think can be improved?

from whiteboard.

e-alfred avatar e-alfred commented on July 26, 2024

Awesome, I will test it out and report back to you!

from whiteboard.

cracker0dks avatar cracker0dks commented on July 26, 2024

megred it into the master :)

from whiteboard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.