Update Devine/plugins/Dev/upload.py
Browse files
Devine/plugins/Dev/upload.py
CHANGED
@@ -34,16 +34,13 @@ async def upload_file(client, message, file_path):
|
|
34 |
data = {
|
35 |
"api_key": API_KEY,
|
36 |
"timestamp": int(time.time()),
|
37 |
-
<<<<<<< HEAD
|
38 |
"signature": API_SECRET
|
39 |
}
|
40 |
response = requests.post(CLOUDINARY_UPLOAD_URL, data=files)
|
41 |
-
=======
|
42 |
"signature": API_SECRET
|
43 |
}
|
44 |
response = requests.post(CLOUDINARY_UPLOAD_URL, files=files, data=data)
|
45 |
-
|
46 |
-
|
47 |
upload_time = round(time.time() - start_time, 2)
|
48 |
|
49 |
if response.status_code == 200:
|
|
|
34 |
data = {
|
35 |
"api_key": API_KEY,
|
36 |
"timestamp": int(time.time()),
|
|
|
37 |
"signature": API_SECRET
|
38 |
}
|
39 |
response = requests.post(CLOUDINARY_UPLOAD_URL, data=files)
|
|
|
40 |
"signature": API_SECRET
|
41 |
}
|
42 |
response = requests.post(CLOUDINARY_UPLOAD_URL, files=files, data=data)
|
43 |
+
|
|
|
44 |
upload_time = round(time.time() - start_time, 2)
|
45 |
|
46 |
if response.status_code == 200:
|