Fix #847: Use ASCII filename before upload to S3 to avoid playback issues

This commit is contained in:
Eliot Berriot 2019-06-10 14:33:46 +02:00
commit 2523108b6a
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
5 changed files with 43 additions and 5 deletions

View file

@ -323,7 +323,7 @@ if AWS_ACCESS_KEY_ID:
AWS_S3_REGION_NAME = env("AWS_S3_REGION_NAME", default=None)
AWS_S3_SIGNATURE_VERSION = "s3v4"
AWS_LOCATION = env("AWS_LOCATION", default="")
DEFAULT_FILE_STORAGE = "storages.backends.s3boto3.S3Boto3Storage"
DEFAULT_FILE_STORAGE = "funkwhale_api.common.storage.ASCIIS3Boto3Storage"
# See: https://docs.djangoproject.com/en/dev/ref/contrib/staticfiles/#std:setting-STATICFILES_DIRS
STATICFILES_DIRS = (str(APPS_DIR.path("static")),)