[GH-ISSUE #2046] Bug in Local Image Upload #1273

Open
opened 2026-03-02 11:56:12 +03:00 by kerem · 2 comments
Owner

Originally created by @BenAngel65 on GitHub (Oct 14, 2025).
Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/2046

Describe the Bug

I have deployed Karakeep on my own server and configured it to use Tencent Cloud S3 as the storage for assets. When I capture web pages and images via URL and store them in S3, everything works fine
. However, when I upload local images (both from the browser and Android), I encounter a bug. The files uploaded to S3 have a few extra bytes at the beginning of the file header, as shown in the image.

Image

These extra bytes seem to be the remnants of Transfer-Encoding: chunked, which causes the images to fail to display.

Image

Steps to Reproduce

Drag and drop images into the browser's upload window or upload photos from the phone on Android.

Expected Behaviour

Upload and display images correctly from the local source.

Screenshots or Additional Context

No response

Device Details

No response

Exact Karakeep Version

0.27.1

Have you checked the troubleshooting guide?

  • I have checked the troubleshooting guide and I haven't found a solution to my problem
Originally created by @BenAngel65 on GitHub (Oct 14, 2025). Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/2046 ### Describe the Bug I have deployed Karakeep on my own server and configured it to use Tencent Cloud S3 as the storage for assets. When I capture web pages and images via URL and store them in S3, everything works fine . However, when I upload local images (both from the browser and Android), I encounter a bug. The files uploaded to S3 have a few extra bytes at the beginning of the file header, as shown in the image. <img width="693" height="101" alt="Image" src="https://github.com/user-attachments/assets/02f61673-d9a8-46d9-8ae4-4083c48ccd6b" /> These extra bytes seem to be the remnants of Transfer-Encoding: chunked, which causes the images to fail to display. <img width="348" height="398" alt="Image" src="https://github.com/user-attachments/assets/3f35d950-39e6-4223-8893-00b7c748fb3f" /> ### Steps to Reproduce Drag and drop images into the browser's upload window or upload photos from the phone on Android. ### Expected Behaviour Upload and display images correctly from the local source. ### Screenshots or Additional Context _No response_ ### Device Details _No response_ ### Exact Karakeep Version 0.27.1 ### Have you checked the troubleshooting guide? - [x] I have checked the troubleshooting guide and I haven't found a solution to my problem
Author
Owner

@MohamedBassem commented on GitHub (Oct 20, 2025):

hmmm, interesting. I can't reproduce this problem. Do you have a specific image I can try?

<!-- gh-comment-id:3420166088 --> @MohamedBassem commented on GitHub (Oct 20, 2025): hmmm, interesting. I can't reproduce this problem. Do you have a specific image I can try?
Author
Owner

@BenAngel65 commented on GitHub (Oct 22, 2025):

hmmm, interesting. I can't reproduce this problem. Do you have a specific image I can try?

What I mean is that no matter whether the images are uploaded locally and then dragged into the browser, or uploaded from the Android photo gallery, this issue always occurs. I've tried multiple types of images on several devices, and it's the same every time. However, if I only provide the image's URL link, the image displays normally.

<!-- gh-comment-id:3430856692 --> @BenAngel65 commented on GitHub (Oct 22, 2025): > hmmm, interesting. I can't reproduce this problem. Do you have a specific image I can try? What I mean is that no matter whether the images are uploaded locally and then dragged into the browser, or uploaded from the Android photo gallery, this issue always occurs. I've tried multiple types of images on several devices, and it's the same every time. However, if I only provide the image's URL link, the image displays normally.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/karakeep#1273
No description provided.