Spaces:
Running
Running
Commit
·
b5bb9d3
1
Parent(s):
353d91a
init
Browse files
util.py
CHANGED
|
@@ -109,7 +109,7 @@ class R2Api:
|
|
| 109 |
t1 = time.time()
|
| 110 |
headers = {"Content-Type": content_type}
|
| 111 |
|
| 112 |
-
cloud_path = f"
|
| 113 |
url = self.client.generate_presigned_url(
|
| 114 |
"put_object",
|
| 115 |
Params={"Bucket": self.R2_BUCKET, "Key": cloud_path, "ContentType": content_type},
|
|
|
|
| 109 |
t1 = time.time()
|
| 110 |
headers = {"Content-Type": content_type}
|
| 111 |
|
| 112 |
+
cloud_path = f"ImageEdit/Uploads/{str(datetime.date.today())}/{filename}"
|
| 113 |
url = self.client.generate_presigned_url(
|
| 114 |
"put_object",
|
| 115 |
Params={"Bucket": self.R2_BUCKET, "Key": cloud_path, "ContentType": content_type},
|