diff --git a/AUTHORS.rst b/AUTHORS.rst index 3bae5fe3..70045203 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -20,6 +20,7 @@ answer newbie questions, and generally made taiga that much better: - Andrea Stagi - Andrés Moya - Andrey Alekseenko +- Bruno Clermont - Chris Wilson - David Burke - Hector Colina diff --git a/taiga/base/storage.py b/taiga/base/storage.py index 4df5ce25..84c2a460 100644 --- a/taiga/base/storage.py +++ b/taiga/base/storage.py @@ -41,7 +41,7 @@ class FileSystemStorage(storage.FileSystemStorage): # Note that there is a race between os.path.exists and os.makedirs: # if os.makedirs fails with EEXIST, the directory was created # concurrently, and we can continue normally. Refs #16082. - directory = os.path.dirname(name) + directory = os.path.join(settings.MEDIA_ROOT, os.path.dirname(name)) if not os.path.exists(directory): try: if self.directory_permissions_mode is not None: