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

uploaderDelete fails when using CloudFront #8

Open
jamgold opened this issue Jan 2, 2015 · 0 comments
Open

uploaderDelete fails when using CloudFront #8

jamgold opened this issue Jan 2, 2015 · 0 comments

Comments

@jamgold
Copy link

jamgold commented Jan 2, 2015

The easiest way to setup CloudFront is to name the bucket after the CNAME of your CloudFront URL, which results in S3 URLs like

http://s3.amazonaws.com/<BUCKET>/testing/rt2ngHzJHTysi6CqK.jpg

where BUCKET is the CNAME like s3.domain.com

Unfortunately the uploaderDelete method takes the entire S3 URL as an argument and then tries to create a relative URL from that to pass to Knox by using url.split(/.com/)[0], which fails to provide the correct relative url because the S3 url contains more than one .com, and the Knox.remove fails, yet the method reports back success.

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

No branches or pull requests

1 participant