Comments (9)
This happens because we use image path to construct S3 path. When you put the last slash, S3 consider this a folder then create an empty folder (w/o name). We'll check a way to manage this kind of issue.
Thanks.
from aws.
@aoqfonseca -- So we have extensionless image urls and need a fix for this.
Off the top of my head, it seems like doing a transformation like the following in _normalize_path
...
https://xyz.cloudfront.net/i/372852/
to https://xyz.cloudfront.net/i/372852SLASH
would work (or any sort of ending that we are relatively certain won't have collisions)
Can you think of any problem with that approach on our side? (We were going to fork the repo temporarily as a workaround and I could polish things up for upstream if you think that's a reasonable fix)
from aws.
No problem with this approach. I would rather to use something more meaningful, like: https://xyz.cloudfront.net/i/372852/image.png or https://xyz.cloudfront.net/i/372852.png .
from aws.
@aoqfonseca -- The problem with appending the extension is that I don't think we know what file type an image is at _normalize_path
-- I went with the following approach...
https://github.com/Leafly-com/aws/pull/1/files
@Bladrak -- If this seems solid, I'll write tests and send out a PR.
from aws.
Seems fine @philipbjorge, however I would rename no_extension
to root_image
(without the type as the extension). Also, this name may rather be in the config, so it can be changed by the use if need be.
from aws.
@philipbjorge What's the status on this? Do you feel ready to submit a PR to this repo?
from aws.
@Bladrak -- Heh, I'd forgotten about this.
I will try to get to this within 7 days, but if I haven't submitted a PR for this by then anyone should feel free to pick this up :).
It's a straight forward feature to add and would be great for new contributors to open source.
from aws.
Great, thanks for your feedback :)
from aws.
Should be resolved with 6.2.3 version using TC_AWS_ROOT_IMAGE_NAME
option.
from aws.
Related Issues (20)
- Remove dependency to tornado_botocore
- Cannot DELETE when TC_AWS_RANDOMIZE_KEYS = True HOT 2
- Credentials not found when using IAM role for EC2 instance HOT 1
- Cannot load files from s3 bucket HOT 1
- S3 key not found at HOT 2
- Plan to support customized result storage path?
- thumbor s3 upload
- Multiple TC_AWS_LOADER_BUCKET HOT 2
- Delete file from S3 fails because of missing normalization HOT 6
- Cannot load files from S3 bucket larger than 100mb HOT 1
- Support thumbor v7.x. HOT 25
- Getting "No security key was found" HOT 2
- Migrating from old version: 404 on old images HOT 2
- Feature request: modify S3 result storage path to make for easier deletion HOT 2
- Need Help with Configuration HOT 1
- Images are not complete when getting it from server HOT 1
- Help to upgrade this to 7.0.0 HOT 1
- Thumbor watermark Filters shows multiple image(2 watermark image)
- Use a more up-to-date aiobotocore to allow assumeRole iam credentials HOT 7
- Feature Request - Multiple S3 bucket support for image loader piece HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws.