Skip to content
Snippets Groups Projects
Commit fe92bc15 authored by Brian Moe's avatar Brian Moe
Browse files

PUT of file resource must be multipart/form-data.

parent c549db86
No related branches found
No related tags found
No related merge requests found
......@@ -341,6 +341,8 @@ class Files(APIView):
"""Files Resource"""
authentication_classes = (LigoAuthentication,)
parser_classes = (parsers.MultiPartParser,)
def get(self, request, graceid, filename=""):
# Do not filename to be None. That messes up later os.path.join
filename = filename or ""
......
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