Comments (3)
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.
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.
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)
- Send directories? HOT 11
- RPM package for ROSA HOT 2
- Transfer of files/directories with # in name does not work HOT 4
- return URL after uploading ? HOT 3
- Get curl --limit-rate settings accessible HOT 3
- Support chunked upload HOT 1
- Option to specify the remote file name HOT 9
- Screenshots HOT 1
- Progress bar HOT 2
- Upload to Nextcloud 21 does not work HOT 6
- Create folders HOT 6
- Better messages for globbing HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloudsend.sh.