Skip to content

Commit b948263

Browse files
committed
fix:upload failure
1 parent 2d73312 commit b948263

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

storage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ async def get_text(self, file: UploadFile, key: str):
2323
path = self.DATA_ROOT / f"upload/{now.year}/{now.month}/{now.day}/"
2424
if not path.exists():
2525
path.mkdir(parents=True)
26-
text = f"{self.STATIC_URL}/{(path / f'{key}.{ext}').relative_to(self.DATA_ROOT).relative_to(self.DATA_ROOT)}"
26+
text = f"{self.STATIC_URL}/{(path / f'{key}.{ext}').relative_to(self.DATA_ROOT)}"
2727
return text
2828

2929
@staticmethod

0 commit comments

Comments
 (0)