文件上传

This commit is contained in:
resonate
2022-01-24 12:52:12 +08:00
parent 9bfdac0953
commit 9b8d632995
10 changed files with 176 additions and 3 deletions
+19
View File
@@ -0,0 +1,19 @@
class BaseUploader(object):
def __init__(self):
raise NotImplementedError
def store(self, fileobj, filename):
raise NotImplementedError
def upload(self, file_obj, filename):
raise NotImplementedError
def download(self, filename):
raise NotImplementedError
def delete(self, filename):
raise NotImplementedError
def sync(self):
raise NotImplementedError