We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e5594f commit 90bc002Copy full SHA for 90bc002
s3file/forms.py
@@ -16,10 +16,10 @@ class S3FileInputMixin:
16
"""FileInput that uses JavaScript to directly upload to Amazon S3."""
17
18
needs_multipart_form = False
19
- upload_path = getattr(
+ upload_path = str(getattr(
20
settings, 'S3FILE_UPLOAD_PATH', pathlib.PurePosixPath('tmp', 's3file')
21
- )
22
- upload_path = safe_join(storage.location, upload_path)
+ ))
+ upload_path = safe_join(str(storage.location), upload_path)
23
expires = settings.SESSION_COOKIE_AGE
24
25
@property
0 commit comments