GithubHelp home page GithubHelp logo

Comments (3)

tavinus avatar tavinus commented on June 20, 2024

Hi. That seems to be correct.

In this case curl exited without any errors indeed. This means curl was able to perform the request and get an answer without any errors. However, you got an error in your call, which is described in the response xml. So, if you get ANY response (even an error response) curl exited without errors.

From the message, it seems like you didn't provide the needed authentication for this shared folder (password?). Or maybe the URL is invalid because you appended the folder into it. The share URL is static. I don't think you can change it to include an inner folder. You can share the inner folder by itself (get another link) or maybe you can send the parent folder with the same name (you may get an error that the folder already exists, I don't remember how it behaves).

In any case, the share URL is always exactly the link nextcloud provides. You cannot append folders into the share link URL. You may try to send a folder, but the target is always the root of the share URL.

Let me know how that goes.

Cheers!
Gus

from cloudsend.sh.

tavinus avatar tavinus commented on June 20, 2024

Ok, I just tested the "https://cloud.url/s/sometoken?path=MYFOLDER" and it actually opens the sub folder (in the browser).

This means it can be possible to do what you want, but that is not implemented.

Things to note:

  • The username is the token, so we need to break it from the url parameter (?path=...)
  • After the successful login with token/password, we need to change dir to the target dir
  • The target dir may not exist (how do we test and account for errors?)
  • Still need to test what happens if we send a folder with the same name to the root of the share (may work)

I am setting a new system to myself at the moment. Still setting up the environment.

I think I can filter for path= in the url and get to work as you want, bear with me tho...

from cloudsend.sh.

tavinus avatar tavinus commented on June 20, 2024

Hi @lumpiluk , coul you please try version 2.2.5 and confirm it fixes your problem?

v2.2.5
Allows sending files and folders to a secondary folder that is inside a shared folder (or its siblings).

The folder link must follow Nextcloud's notation, with ?path=%2FFOLDERNAME added to the link.

The easiest way is to open the shared folder from the shared link and then copy the URL.

Example of a valid URL:

https://cloud.mydomain.tld/s/TxWdsNX2Ln3X5kxG?path=%2FMYFOLDER

from cloudsend.sh.

Related Issues (13)

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.