Spaces:
Running
Running
Commit
·
47a64ee
1
Parent(s):
1c27f66
init
Browse files
util.py
CHANGED
|
@@ -74,7 +74,7 @@ class R2Api:
|
|
| 74 |
t1 = time.time()
|
| 75 |
headers = {"Content-Type": content_type}
|
| 76 |
|
| 77 |
-
cloud_path = f"
|
| 78 |
url = self.client.generate_presigned_url(
|
| 79 |
"put_object",
|
| 80 |
Params={"Bucket": self.R2_BUCKET, "Key": cloud_path, "ContentType": content_type},
|
|
|
|
| 74 |
t1 = time.time()
|
| 75 |
headers = {"Content-Type": content_type}
|
| 76 |
|
| 77 |
+
cloud_path = f"ImageEdit/Uploads/{str(datetime.date.today())}/{filename}"
|
| 78 |
url = self.client.generate_presigned_url(
|
| 79 |
"put_object",
|
| 80 |
Params={"Bucket": self.R2_BUCKET, "Key": cloud_path, "ContentType": content_type},
|