archive
/
static-share
Archived
1
Fork 0

just download the file from admin link, it's cleaner

This commit is contained in:
Jake Howard 2016-09-06 17:51:43 +01:00
parent a95f741f68
commit 4c8c81bead
Signed by: jake
GPG Key ID: 57AFB45680EDD477
1 changed files with 0 additions and 1 deletions

View File

@ -46,5 +46,4 @@ def hotlink_file_download(request, id):
def uploaded_file(request, filename):
file = get_object_or_404(SharedFile, file=request.get_full_path()[1:]) # strip preceding slash
response = FileResponse(file)
del response['Content-Disposition']
return response