just download the file from admin link, it's cleaner
This commit is contained in:
parent
a95f741f68
commit
4c8c81bead
1 changed files with 0 additions and 1 deletions
|
@ -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
|
||||
|
|
Reference in a new issue