Added staging file previews support
This commit is contained in:
7
3rd_party_apps/filetransfers/backends/base_url.py
Normal file
7
3rd_party_apps/filetransfers/backends/base_url.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from django.conf import settings
|
||||
|
||||
def public_download_url(file, **kwargs):
|
||||
"""
|
||||
Directs downloads to a handler at settings.PUBLIC_DOWNLOADS_URL_BASE
|
||||
"""
|
||||
return settings.PUBLIC_DOWNLOADS_URL_BASE + file.name
|
||||
Reference in New Issue
Block a user