Χρησιμοποιήστε το παρακάτω πλαίσιο για να αποθέσετε τα αρχεία σας ή κάντε κλικ στο πλαίσιο για να επιλέξετε εικόνες ή αρχεία. Δεν υπάρχει εγγραφή ή εγγραφή. Μπορείτε να ανεβάσετε πολλά στοιχεία ταυτόχρονα και να λάβετε έναν σύνδεσμο για κάθε στοιχείο. Όλες οι μεταφορτώσεις είναι ανώνυμες.
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