Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix uploads to AWS S3 folder #1099

Merged
merged 3 commits into from
Sep 16, 2024

Conversation

texpert
Copy link
Collaborator

@texpert texpert commented Sep 15, 2024

Fixes #1097

Uploads to an AWS folder were failing. The cause was the check for an absolute path.

Here I have removed this check, because it has no sense - the received path is being joined to the current_site.upload_directory.

Also, I have introduced the path validation to the add_folder method, because I've just found that it was also unsafe.

@texpert texpert self-assigned this Sep 15, 2024
@texpert texpert merged commit e0f0b9f into owen2345:master Sep 16, 2024
@brian-kephart
Copy link
Collaborator

Thank you @texpert ! I just updated and the issue is indeed fixed.

@texpert texpert deleted the fix-uploads-to-aws-s3-folder branch October 26, 2024 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Image uploading failure
3 participants