mirror of
https://github.com/vastsa/FileCodeBox.git
synced 2026-11-28 19:27:07 +08:00
fix:upload failure
This commit is contained in:
1 parent
2d7331269c
commit
b948263519
1 file changed
+1
-1
+1
-1
@@ -23,7 +23,7 @@ class FileSystemStorage:
|
||||
path = self.DATA_ROOT / f"upload/{now.year}/{now.month}/{now.day}/"
|
||||
if not path.exists():
|
||||
path.mkdir(parents=True)
|
||||
text = f"{self.STATIC_URL}/{(path / f'{key}.{ext}').relative_to(self.DATA_ROOT).relative_to(self.DATA_ROOT)}"
|
||||
text = f"{self.STATIC_URL}/{(path / f'{key}.{ext}').relative_to(self.DATA_ROOT)}"
|
||||
return text
|
||||
|
||||
@staticmethod
|
||||
|
||||
Reference in new issue
Block a user