Preview of uploaded images not shown
Describe the bug
When I upload an image to a card, the preview doesn't show. Analyzing the request it makes, it points to /_next/image?url= and the server returns a 400 Bad Request with "url" parameter is not allowed error.
Screenshots
Environment (please complete the following information):
- Docker image: ghcr.io/kanbn/kan:latest
fc4212fb3a1e
Hey @javierav. Have you added your s3 config: https://github.com/kanbn/kan/blob/main/.env.example#L25-L34
https://github.com/kanbn/kan/blob/main/.env.example#L25-L34
Hey @javierav. Have you added your s3 config: https://github.com/kanbn/kan/blob/main/.env.example#L25-L34
https://github.com/kanbn/kan/blob/main/.env.example#L25-L34
Yes, of course!
# docker-compose.yml
kanbn:
image: ghcr.io/kanbn/kan:latest
environment:
- S3_REGION=${KAN_S3_REGION}
- S3_ACCESS_KEY_ID=${KAN_S3_ACCESS_KEY_ID}
- S3_SECRET_ACCESS_KEY=${KAN_S3_SECRET_ACCESS_KEY}
- NEXT_PUBLIC_ATTACHMENTS_BUCKET_NAME=${KAN_NEXT_PUBLIC_ATTACHMENTS_BUCKET_NAME}
# .env
KAN_S3_REGION="<my-region>"
KAN_S3_ACCESS_KEY_ID="<my-key>"
KAN_S3_SECRET_ACCESS_KEY="<my-secret>"
KAN_NEXT_PUBLIC_ATTACHMENTS_BUCKET_NAME="<my-bucket>"
When I upload an image, it uploads correctly to S3, and when I click on the preview, it does display full-size correctly. That's why I'm led to think it's a problem with the thumbnail/preview generation.
Just checking if this is still an issue? @javierav
I've made some changes in the last few weeks that should've improved the way we handle images/thumbnails.
If not please could you share the full url for the failed request?