Ramon Medeiros
Ramon Medeiros

Reputation: 2641

Cannot upload file to transfer.sh. Error: could no save metadata

Transfer.sh is a service that you can upload files by curl. I'm getting this error when I try to upload some file:

$ curl --upload-file file -s -w "\n" https://transfer.sh/
Could not save metadata

Upvotes: 2

Views: 3733

Answers (2)

FErArg
FErArg

Reputation: 113

With this bash function you can obtain the link

snd() {
    curl --progress-bar -F "file=@$1" -s -w "\n"  https://file.io | jq -r '.link'
}
alias snd=snd

How To use: snd filename.ext

Obtain: https://file.io/0uw5yYbkguc4

To parse the upload response, json, need to install "jq"

Upvotes: 1

Ramon Medeiros
Ramon Medeiros

Reputation: 2641

The service seems to be unstable.

You can use https://file.io

$ curl -F "file=@file" -s -w "\n"  https://file.io                                                                                                                            {"success":true,"key":"Y7PDKv","link":"https://file.io/Y7PDKv","expiry":"14 days"}

Upvotes: 7

Related Questions