yadayada / acd_cli

An unmaintained command line interface and FUSE filesystem for Amazon (Cloud) Drive
Other
1.35k stars 165 forks source link

Stream upload results in a 0b file #532

Open solracsf opened 7 years ago

solracsf commented 7 years ago

I'm trying to stram a remote dwonload like this:

curl -O "https://remote.tld/file" -H "Host: remote.tld" -H "User-Agent: Mozilla/5.0" -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" -H "Accept-Language: fr,fr-FR;q=0.8,en-US;q=0.5,en;q=0.3" --compressed -H "Cookie: SID=hPCemo4HnNa1Cp3GWfo7OfgPTyf5iGGXMsvY1djqXuPvQDSucb=CEb=kyVvSId5N" -H "Connection: keep-alive" -H "Upgrade-Insecure-Requests: 1" | acdcli stream file.zip /Uploads

But it results in a zero bytes files on Amazon.

If i omit the | acdcli stream file.zip /Uploads part, file is correctly downloaded locally.

Is this an issue, am i doing it wrong or is this an expected behavior?

bgemmill commented 7 years ago

@acs-ferreira what happens if you use acdcli's fuse mount, and stream to a new file at the mounted location?