Spaces:
Running
Running
Commit
·
1c27f66
1
Parent(s):
cdb8e81
init
Browse files
util.py
CHANGED
|
@@ -116,7 +116,7 @@ class R2Api:
|
|
| 116 |
headers = {"Content-Type": ctype}
|
| 117 |
|
| 118 |
|
| 119 |
-
cloud_path = f"
|
| 120 |
url = self.client.generate_presigned_url(
|
| 121 |
"put_object",
|
| 122 |
Params={"Bucket": self.R2_BUCKET, "Key": cloud_path, "ContentType": ctype},
|
|
|
|
| 116 |
headers = {"Content-Type": ctype}
|
| 117 |
|
| 118 |
|
| 119 |
+
cloud_path = f"ImageEdit/Uploads/{str(datetime.date.today())}/{os.path.basename(local_path)}"
|
| 120 |
url = self.client.generate_presigned_url(
|
| 121 |
"put_object",
|
| 122 |
Params={"Bucket": self.R2_BUCKET, "Key": cloud_path, "ContentType": ctype},
|