v1.2.0-HTTP2 #3
@@ -1125,7 +1125,7 @@ function plik_oneshot_upload(file_server_url::String, filepath::String)
|
||||
url_getUploadID = "$file_server_url/upload" # URL to get upload ID
|
||||
headers = ["Content-Type" => "application/json"]
|
||||
body = """{ "OneShot" : true }"""
|
||||
http_response = HTTP.request("POST", url_getUploadID, headers, body; body_is_form=false)
|
||||
http_response = HTTP.request("POST", url_getUploadID, headers, body)
|
||||
response_json = JSON.parse(http_response.body)
|
||||
|
||||
uploadid = response_json["id"]
|
||||
|
||||
Reference in New Issue
Block a user