cloudsend.sh icon indicating copy to clipboard operation
cloudsend.sh copied to clipboard

2.3.4+ - Glob mode no longer works

Open ivoshm opened this issue 5 months ago • 0 comments

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.

ivoshm avatar Sep 08 '24 11:09 ivoshm