Commit bc9f5a13 authored by Gladys Forte's avatar Gladys Forte

fix download api

parent c064197d
...@@ -98,6 +98,6 @@ class Download(APIView): ...@@ -98,6 +98,6 @@ class Download(APIView):
def post(self, request, **kwargs): def post(self, request, **kwargs):
print("hello") print("hello")
req = requests.get(request.body.get("url")) req = requests.get(request.data.get("url"))
print(req)
return FileResponse(req, as_attachment=True) return FileResponse(req, as_attachment=True)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment