[GH-ISSUE #3863] [bug]: Download file add one byte to file #1354

Open
opened 2026-03-16 19:58:07 +03:00 by kerem · 0 comments
Owner

Originally created by @pkoukk on GitHub (Feb 27, 2024).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3863

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

After I requested an API and got a binary file in response, I clicked the "Download File" button under the Raw tab in the response pane to save the file.
However, I found that the file could not be opened.
When I checked the file size, its number of bytes was one more than the response length.
So I viewed the saved file in a hex editor again, and found there was an extra byte at the end of the file.

image image

Steps to reproduce

  1. Request a binary file
  2. Save raw response to file
  3. Checkout the file size or content

Environment

Release

Version

Cloud

Originally created by @pkoukk on GitHub (Feb 27, 2024). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3863 ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current behavior After I requested an API and got a binary file in response, I clicked the "Download File" button under the Raw tab in the response pane to save the file. However, I found that the file could not be opened. When I checked the file size, its number of bytes was one more than the response length. So I viewed the saved file in a hex editor again, and found there was an extra byte at the end of the file. <img width="1433" alt="image" src="https://github.com/hoppscotch/hoppscotch/assets/21674009/1df606f8-3d52-44ee-ac15-1daba7a1d07d"> <img width="729" alt="image" src="https://github.com/hoppscotch/hoppscotch/assets/21674009/31a7a11f-729a-45cc-8c26-0bcd9c117d9a"> ### Steps to reproduce 1. Request a binary file 2. Save raw response to file 3. Checkout the file size or content ### Environment Release ### Version Cloud
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/hoppscotch#1354
No description provided.