kan icon indicating copy to clipboard operation
kan copied to clipboard

Preview of uploaded images not shown

Open javierav opened this issue 10 months ago • 3 comments

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 Image

Environment (please complete the following information):

  • Docker image: ghcr.io/kanbn/kan:latest fc4212fb3a1e

javierav avatar Jan 23 '26 21:01 javierav

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

hjball avatar Jan 24 '26 22:01 hjball

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.

javierav avatar Jan 26 '26 08:01 javierav

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?

hjball avatar Feb 19 '26 04:02 hjball