Skip to content

Fix issue with S3 upload #27

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

leifdenby
Copy link

Fixes #7

If MEDIA_URL was set to http://... then the uploader would fail
because the returned path from Amazon S3 is https://... This commit
fixes this by using urlparse instead to match the hostname and find
the relative path.

Fixes zmathew#7

If `MEDIA_URL` was set to `http://...` then the uploader would fail
because the returned path from Amazon S3 is `https://..`. This commit
fixes this by using `urlparse` instead to match the hostname and find
the relative path.
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.

Doesn't seem to work with Amazon S3
1 participant