-
Notifications
You must be signed in to change notification settings - Fork 78
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
Support for nested directory at s3 #9
Comments
@concalahan I can see your image, however, there is no redirect to your lambda. |
I have the same problem: It works with files in the root: Original: http://photos.matchatheapp.com.s3-website-eu-west-1.amazonaws.com/horse.jpg It does not work with files in directories: Original: https://photos.matchatheapp.com.s3-eu-west-1.amazonaws.com/profiles/XrPLrK/51ED545C-AB28-4988-9D6B-598A0DD6A02F.jpeg |
@fabianmossberg Could you please confirm that the images have been resized, but you get AccessDenied when you request them? |
@sagidM : no, the folder 100x100 does not exist in the |
@fabianmossberg First, please check out if Also, there is an item {
"queryStringParameters": {"path": "profiles/XrPLrK/100x100/51ED545C-AB28-4988-9D6B-598A0DD6A02F.jpeg"}
} If it fails, the log of the lambda or the screenshot will definitely help. |
@sagidM : this is strange. Today it works. Even the links I Posted as "not working" yesterday actually produces the expected result today. I'm not sure what I did wrong. But I do see some errors I had done. When I filled the "path" in the test you had in the example, I filled the whole URL, not just the path. I also realized the difference between the static hosting URL They look so alike that I completely missed that they were different domains. |
@fabianmossberg Yeah, I believe you, I have been keeping the tab from yesterday with an error. And I have already seen this sort of error when the accessibility to a file was wrong. For example, if the bucket policy has not been provided or a role's policy for a lambda was incorrect But if it started working without any change, that is really strange. So, let's keep this issue open for a while and if you encounter the same problem, please do tests and provide the output. |
Oops, it is still not working Also, you can monitor the directory |
@sagidM how to fix this?
If I test it in lamda and access that URL it is working, until then it isn't working. May be the test is triggering the function? PS no issues if the image isn't nested inside a folder. |
@5URE5H how much does it take to the point when it stops working? |
For nested items, URL gives error when I try to access it right off the bat, once I test in lambda (for nested cases) then URL is working without any issues from then on. If it isn't nested inside a folder it works from the start. |
@5URE5H would you like to make a call some time? |
Hey @sagidM idd you ever get to the bottom of this? I'm trying to get this working with folders, but no luck so far. |
@philyboysmith unfortunately, I could not reproduce the bug. The images are stored in to directories |
Hi, I'm facing the same issue when trying to resize images that are nested within the bucket. I've tested with the lambda url, for example: I've checked my bucket and confirmed that the nested image was not resized at all while the one on root path was successfully resized. Are there any updates for this issue? |
@paoyangt hi, can you share your policy config? |
Here it is @sagidM
|
mine working fine.
So, basically the formula would be |
Hello,
It cannot auto generate smaller images for nested directory.
For example, I have an image at https://gt-sky.s3-ap-southeast-1.amazonaws.com/hongphucsport.vn/b.png
The module cannot give me the image at https://gt-sky.s3-ap-southeast-1.amazonaws.com/hongphucsport.vn/150x150/b.png
Thank you very much.
The text was updated successfully, but these errors were encountered: