Skip to content
Snippets Groups Projects
Verified Commit cd31b220 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Remove legacy file upload function

All file-handling code is required to use the storage API.
parent d4bf41b7
No related branches found
No related tags found
1 merge request!614Remove legacy file upload function
Pipeline #11813 passed
......@@ -248,12 +248,6 @@ def objectgetter_optional(
return get_object
def handle_uploaded_file(f, filename: str):
with open(filename, "wb+") as destination:
for chunk in f.chunks():
destination.write(chunk)
@cache_memoize(3600)
def get_content_type_by_perm(perm: str) -> Union["ContentType", None]:
from django.contrib.contenttypes.models import ContentType # noqa
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment