'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


Solution 1:[1]

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"}

Solution 2:[2]

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"

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2 FErArg