perf: in safe mode passkey cannot be as mfa

This commit is contained in:
ibuler
2025-07-24 16:51:36 +08:00
committed by 老广
parent 26cea550c4
commit be24f28d9b
2 changed files with 6 additions and 2 deletions

View File

@@ -42,6 +42,7 @@ class DownloadUploadMixin:
rel_path = default_storage.save(save_to, file)
path = default_storage.path(rel_path)
extract_to = default_storage.path('applets/{}.tmp'.format(file.name))
if os.path.exists(extract_to):
shutil.rmtree(extract_to)