This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var client = new RestClient("https://api.uploadcare.com"); | |
var request = new RestRequest("files/{uuid}/storage/", Method.DELETE); | |
request.AddHeader("Authorization", "Uploadcare.Simple demopublickey:demoprivatekey"); | |
// execute the request | |
RestResponse response = client.Execute(request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os.path | |
import string | |
VALID_CHARS = "_%s%s" % (string.ascii_letters, string.digits) | |
def clean_filename_part(part): | |
return ''.join(c for c in part if c in VALID_CHARS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dd if=/dev/urandom of=garbage bs=5M count=1 | |
curl -F file=@garbage -F UPLOADCARE_PUB_KEY=demopublickey -w "\n%{speed_upload}\n%{time_connect} %{time_starttransfer} %{time_total}\n" https://upload.uploadcare.com/base/ |
NewerOlder