From 0585d6ee927ad5aa4a4baea3dac786db1a49b647 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Tue, 15 Dec 2020 13:58:59 +0200 Subject: [PATCH] Chunk file uploader: accept all kinds of media types. This restriction was unnecessary and annoying to deal with in clients. --- django_etebase/parsers.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/django_etebase/parsers.py b/django_etebase/parsers.py index c7fe58c..ed1e713 100644 --- a/django_etebase/parsers.py +++ b/django_etebase/parsers.py @@ -6,8 +6,6 @@ class ChunkUploadParser(FileUploadParser): Parser for chunk upload data. """ - media_type = "application/octet-stream" - def get_filename(self, stream, media_type, parser_context): """ Detects the uploaded file name.