This commit is contained in:
jxxghp
2024-11-16 10:55:17 +08:00
parent 665da9dad3
commit fc69d7e6c1
3 changed files with 9 additions and 3 deletions
+2 -1
View File
@@ -57,7 +57,8 @@ class StorageChain(ChainBase):
"""
return self.run_module("download_file", fileitem=fileitem, path=path)
def upload_file(self, fileitem: schemas.FileItem, path: Path, new_name: str = None) -> Optional[bool]:
def upload_file(self, fileitem: schemas.FileItem, path: Path,
new_name: str = None) -> Optional[schemas.FileItem]:
"""
上传文件
:param fileitem: 保存目录项