아래 상자를 사용하여 파일을 놓거나 상자를 클릭하여 이미지나 파일을 선택합니다. 등록이나 가입이 없습니다. 동시에 여러 항목을 업로드하고 각 항목에 대해 하나의 링크를 받을 수 있습니다. 모든 업로드는 익명입니다.
Our convenient API allows uploading images or files from your terminal window. For example:
curl --form meta='{"exposure": "public", "expiration": "auto"}' \ --form 'file=@/home/foobar/images/beautiful_sunset.jpg' \ https://bashify.io/api/v1/uploadThe above command will upload the image with the path
/home/foobar/images/beautiful_sunset.jpg
.
The response will be a JSON-formatted string like this:
{"short_url_code":"D5vH4M", "long_url_code":"D5vH4M_beautiful_sunset", "is_image":1, "deletion_code":"teP5EUKtL"}From the above we can construct URLs: https://bashify.io/images/D5vH4M or https://bashify.io/images/D5vH4M_beautiful_sunset