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

2.3.4+ - Glob mode no longer works #17

Open
ivoshm opened this issue Sep 8, 2024 · 0 comments
Open

2.3.4+ - Glob mode no longer works #17

ivoshm opened this issue Sep 8, 2024 · 0 comments

Comments

@ivoshm
Copy link

ivoshm commented Sep 8, 2024

Many thanks for this handy tool and the support.

Unfortunately, as of version 2.3.4, sending more than one file in one request no longer works.

Example - try sending files f1 and f2 to Nextcloud:

$ CLOUDSEND_PASSWORD=secret cloudsend.sh -e -k -g "./{f1,f2}" URL

Tavinus Cloud Sender v2.3.9

> Using password from Environment
> Insecure mode ON
> GLOB mode ON, input file checkings disabled

‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗
 SENDING CURL GLOB
‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
./{f1,f2} >
curl: cannot open './{f1,f2}'
curl: try 'curl --help' for more information
curl: (26) Failed to open/read local data from file/application

‗‗‗‗‗‗‗‗‗
 SUMMARY
‾‾‾‾‾‾‾‾‾
    Curl : Errors detected
CurlExit : 26
  WebDav : No info
  Status : Send Failed
    Root : /
    Base : /
    Full : /
  Target : {f1,f2}
    Type : File

Tested on version 2.3.9 and curl version is 8.9.1 (Manjaro Linux, AUR).

Possible cause:

When the user specifies in the cloudsend.sh command the -g flag (i.e. a request for multi-file pattern), the variable GLOBCMD (current line number 224) is set to the same value.

However, according to the curl documentation, the -g flag means that the glob mode is switched off.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant