Failed to link: InvalidParameter: 1 validation error(s) found. - minimum field size of 1, HeadObjectInput.Key

What is the problem you are having with rclone?

Hi, I want to get a link for one of my folders to download it but it's not working. I can download one file but not the entire folder containing thousand of files.

Run the command 'rclone version' and share the full output of the command.

- os/version: debian 12.5 (64 bit)
- os/kernel: 6.1.0-18-amd64 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.22.1
- go/linking: static
- go/tags: none

Which cloud storage system are you using? (eg Google Drive)

OVHcloud

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone link r2config:/folder

returning this error :

2024/03/20 00:17:20 Failed to link: InvalidParameter: 1 validation error(s) found.

  • minimum field size of 1, HeadObjectInput.Key.

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[r2config]
type = s3
provider = Other
env_auth = false
access_key_id = XXX
secret_access_key = XXX
endpoint = https://s3.rbx-archive.io.cloud.ovh.net
acl = private
region = rbx-archive
location_constraint = rbx-archive
### Double check the config for sensitive info before posting publicly

welcome to the forum,

without the full debug log, hard to know what is going on?

r2config:/folder
that would be trying to link to a bucket named folder

as the syntax is `remote:bucket/folder/file and you want to link to a folder

could try something like
rclone link r2config:bucket/folder -vv

Thank you it's working in command line but how to add it in Rclone app when I'm pushing public link button ?

Sounds like Rclone app you are using does not support it. Use CLI.

Ok thank you. I just wanted to get it works within the app :slight_smile:

Any idea to make it works on app ?

Whatever app you are using is not rclone. So this is wrong forum.