From fe92bc15eb9601db5021ed201a9f29564d122e3c Mon Sep 17 00:00:00 2001
From: Brian Moe <brian.moe@ligo.org>
Date: Wed, 5 Dec 2012 16:36:10 -0600
Subject: [PATCH] PUT of file resource must be multipart/form-data.

---
 gracedb/api.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gracedb/api.py b/gracedb/api.py
index b3f5f9ec1..a08385970 100644
--- a/gracedb/api.py
+++ b/gracedb/api.py
@@ -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 ""
-- 
GitLab