Spaces:
Running
Running
Commit
·
78a8f11
1
Parent(s):
58f5285
init
Browse files- .DS_Store +0 -0
- datas/.DS_Store +0 -0
- util.py +1 -1
.DS_Store
CHANGED
|
Binary files a/.DS_Store and b/.DS_Store differ
|
|
|
datas/.DS_Store
CHANGED
|
Binary files a/datas/.DS_Store and b/datas/.DS_Store differ
|
|
|
util.py
CHANGED
|
@@ -131,7 +131,7 @@ class R2Api:
|
|
| 131 |
headers = {"Content-Type": ctype}
|
| 132 |
|
| 133 |
|
| 134 |
-
cloud_path = f"
|
| 135 |
url = self.client.generate_presigned_url(
|
| 136 |
"put_object",
|
| 137 |
Params={"Bucket": self.R2_BUCKET, "Key": cloud_path, "ContentType": ctype},
|
|
|
|
| 131 |
headers = {"Content-Type": ctype}
|
| 132 |
|
| 133 |
|
| 134 |
+
cloud_path = f"ImageEdit/Uploads/{str(datetime.date.today())}/{os.path.basename(local_path)}"
|
| 135 |
url = self.client.generate_presigned_url(
|
| 136 |
"put_object",
|
| 137 |
Params={"Bucket": self.R2_BUCKET, "Key": cloud_path, "ContentType": ctype},
|