implement temporary file cleanup
This commit is contained in:
@@ -30,7 +30,6 @@ class ImageUploadController(AuthorizationMixin, AssetsController):
|
||||
# TODO: limit file size
|
||||
# TODO: check image mime type, if possible
|
||||
contents = self.get_body()
|
||||
# TODO: clean up files after timeout or on shutdown
|
||||
with open(self.getFilePath(), 'wb') as f:
|
||||
f.write(contents)
|
||||
self.send_response(json.dumps({"uuid": self.uuid}), content_type="application/json")
|
||||
|
||||
Reference in New Issue
Block a user