-
Notifications
You must be signed in to change notification settings - Fork 538
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
Image handler V4.1 cannot access objects inside S3 folder #175
Comments
The fix in the PR is unfortunately not working for me. Is it somehow possible to deploy the 3.1 version again and then try to update it with the solution in the PR? Would be so nice if this will make it finally in the production version. |
@OBrown92 download your code from lambda, edit the function in the lines I mentioned, and upload it to lambda, It works for me now in that way. |
We have updated our solution, and I believe your issue has been fixed. If you still see the issue with the latest version (v4.2), please feel free to reopen the issue. You can refer to the recent changes here |
I found the following code is serverless-image-handler lambda function code.
In the following lines
the function splits the path with /, which is also delimiter for s3 folders, as a result if I request with this url
mycf.cloudfront.net/fit-in/800x1000/images/004ac6-1572505735720.png
It actually seeks for
mycf.cloudfront.net/fit-in/800x1000/004ac6-1572505735720.png
Correct me if I'm wrong, or may be there is another way to access objects inside folder, or environment variable that could be attached before key.
Thanks in advance.
The text was updated successfully, but these errors were encountered: