This commit is contained in:
@@ -14,3 +14,4 @@ class FileHandlerAPI(FileHandler):
|
||||
with open(self.folder.joinpath(filename), "wb") as fp:
|
||||
fp.write(content)
|
||||
dump_api_message("file", {"filename": filename, "size": len(content)})
|
||||
return self.folder.joinpath(filename)
|
||||
|
@@ -18,3 +18,4 @@ class SimpleFileHandler(FileHandler):
|
||||
self.folder.mkdir(exist_ok=True)
|
||||
with open(self.folder.joinpath(filename), "wb") as fp:
|
||||
fp.write(content)
|
||||
return self.folder.joinpath(filename)
|
||||
|
Reference in New Issue
Block a user