Spaces:
Running
Running
Commit
·
2df8a7a
1
Parent(s):
78a8f11
init
Browse files
util.py
CHANGED
|
@@ -89,7 +89,7 @@ class R2Api:
|
|
| 89 |
t1 = time.time()
|
| 90 |
headers = {"Content-Type": content_type}
|
| 91 |
|
| 92 |
-
cloud_path = f"
|
| 93 |
url = self.client.generate_presigned_url(
|
| 94 |
"put_object",
|
| 95 |
Params={"Bucket": self.R2_BUCKET, "Key": cloud_path, "ContentType": content_type},
|
|
|
|
| 89 |
t1 = time.time()
|
| 90 |
headers = {"Content-Type": content_type}
|
| 91 |
|
| 92 |
+
cloud_path = f"ImageEdit/Uploads/{str(datetime.date.today())}/{filename}"
|
| 93 |
url = self.client.generate_presigned_url(
|
| 94 |
"put_object",
|
| 95 |
Params={"Bucket": self.R2_BUCKET, "Key": cloud_path, "ContentType": content_type},
|