Commits

Waldemar Kornewald  committed d3cd200

added URL download backend which redirects to file.url

  • Participants
  • Parent commits ea52bc3

Comments (0)

Files changed (1)

File filetransfers/backends/url.py

+from django.http import HttpResponseRedirect
+from django.utils.encoding import smart_str
+
+def serve_file(request, file, save_as, content_type):
+    return HttpResponseRedirect(smart_str(file.url))