[GH-ISSUE #3695] ## How do I send text fields with an image field using multipart/form-data #1276

Closed
opened 2026-03-16 19:35:02 +03:00 by kerem · 8 comments
Owner

Originally created by @Rafay106 on GitHub (Dec 23, 2023).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3695

Originally assigned to: @anwarulislam on GitHub.

          ## How do I send text fields with an image field using multipart/form-data
  • I am using multer in express js
  • This is the request I am making using Hoppscotch
    image
  • The image field is optional, if I don't send it I am getting "Unexpected end of form" error, this is not the case in Postman, if I uncheck image field then it is not giving any errors in postman
  • Also I am sending some text fields in the above request, which is not reaching backend, the req.body object is empty
  • This is not the case in postman, I am receiving all text fields in req.body
    image

So overall I have 2 issues

  1. Getting "Unexpected end of form" error when not sending file field
  2. Can not send text fields together with field field in multipart/form-data

Originally posted by @Rafay106 in https://github.com/hoppscotch/hoppscotch/issues/1679#issuecomment-1868274883

Originally created by @Rafay106 on GitHub (Dec 23, 2023). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3695 Originally assigned to: @anwarulislam on GitHub. ## How do I send text fields with an image field using multipart/form-data - I am using multer in express js - This is the request I am making using Hoppscotch ![image](https://github.com/hoppscotch/hoppscotch/assets/62567028/73f0172c-b32f-4741-a799-0ef6e02fcd3e) - The image field is optional, if I don't send it I am getting "Unexpected end of form" error, this is not the case in Postman, if I uncheck image field then it is not giving any errors in postman - Also I am sending some text fields in the above request, which is not reaching backend, the req.body object is empty - This is not the case in postman, I am receiving all text fields in req.body ![image](https://github.com/hoppscotch/hoppscotch/assets/62567028/eff7cb96-2e0d-47c1-bd61-4db40b94fd7a) ### So overall I have 2 issues 1. Getting "Unexpected end of form" error when not sending file field 2. Can not send text fields together with field field in multipart/form-data _Originally posted by @Rafay106 in https://github.com/hoppscotch/hoppscotch/issues/1679#issuecomment-1868274883_
kerem 2026-03-16 19:35:02 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@talenta-eg commented on GitHub (Jan 28, 2024):

@Rafay106 me to i can not send text with file

<!-- gh-comment-id:1913604941 --> @talenta-eg commented on GitHub (Jan 28, 2024): @Rafay106 me to i can not send text with file
Author
Owner

@abhuyan commented on GitHub (Feb 24, 2024):

Similar use-case. I need to send formatted JSON text along with a file using multipart/form-data. Can't enter the parameter value as multiline which is not accepted in the server side unfortunately.

<!-- gh-comment-id:1962290639 --> @abhuyan commented on GitHub (Feb 24, 2024): Similar use-case. I need to send formatted JSON text along with a file using multipart/form-data. Can't enter the parameter value as multiline which is not accepted in the server side unfortunately.
Author
Owner

@HeIIow2 commented on GitHub (Feb 29, 2024):

Weirdly enough I can't send text fields with multipart/from-data at all regardless of if I also send a file or not.

I am using the .deb build (Desktop).

<!-- gh-comment-id:1971526290 --> @HeIIow2 commented on GitHub (Feb 29, 2024): Weirdly enough I can't send text fields with `multipart/from-data` at all regardless of if I also send a file or not. I am using the `.deb` build (Desktop).
Author
Owner

@InAnYan commented on GitHub (Jun 22, 2024):

Hi! I also have same issues!

I can't send text fields in multipart/form-data from Hoppscotch. However, Postman works.

I think this is a critical bug in Hoppscotch. How to ping the maintainers to label this issue as a bug?

<!-- gh-comment-id:2183981901 --> @InAnYan commented on GitHub (Jun 22, 2024): Hi! I also have same issues! I can't send text fields in `multipart/form-data` from Hoppscotch. However, Postman works. I think this is a critical bug in Hoppscotch. How to ping the maintainers to label this issue as a bug?
Author
Owner

@Rafay106 commented on GitHub (Oct 9, 2024):

@InAnYan I have no idea how to ping maintainers, i switched back to postman after opening this issue 10 months ago...

<!-- gh-comment-id:2403307568 --> @Rafay106 commented on GitHub (Oct 9, 2024): @InAnYan I have no idea how to ping maintainers, i switched back to postman after opening this issue 10 months ago...
Author
Owner

@anwarulislam commented on GitHub (Jun 23, 2025):

@Rafay106 Thank you for bringing this to our attention! I attempted to replicate the issue, but it appears to be functioning correctly on my end. Could you please check again on your side? If the problem persists, would you mind sharing a reproducible process with us?

<!-- gh-comment-id:2995148115 --> @anwarulislam commented on GitHub (Jun 23, 2025): @Rafay106 Thank you for bringing this to our attention! I attempted to replicate the issue, but it appears to be functioning correctly on my end. Could you please check again on your side? If the problem persists, would you mind sharing a reproducible process with us?
Author
Owner

@liyasthomas commented on GitHub (Jun 26, 2025):

Closing due to inactivity.

<!-- gh-comment-id:3007740692 --> @liyasthomas commented on GitHub (Jun 26, 2025): Closing due to inactivity.
Author
Owner

@limseang commented on GitHub (Oct 27, 2025):

hello, now i can't send file with text in Hoppscotch can anyone tell me how ?

Image
<!-- gh-comment-id:3452327303 --> @limseang commented on GitHub (Oct 27, 2025): hello, now i can't send file with text in Hoppscotch can anyone tell me how ? <img width="1035" height="282" alt="Image" src="https://github.com/user-attachments/assets/a5ced47a-c6e5-46f5-a7b0-5573075ce76d" />
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#1276
No description provided.