mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #2453] [bug]: Can't save a request with multipart/form-data body #829
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#829
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ngocthua830 on GitHub (Jun 23, 2022).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2453
Originally assigned to: @anwarulislam on GitHub.
Is there an existing issue for this?
Current behavior
When I save a request with body have binary file I got error:
Uncaught (in promise) FirebaseError: Function setDoc() called with invalid data. Unsupported field value: a custom File object (found in document users/lgddOcyz50hVaH7MjbOq1MgXOvH3/collections/sync)
After reload page and select the request, it's body had been clean.
Steps to reproduce
Environment
Deploy preview
Version
Cloud
@ngocthua830 commented on GitHub (Jul 4, 2022):
I added error screen

@anwarulislam commented on GitHub (Aug 2, 2022):
Thanks for raising the issue. But, unfortunately, there is a technical limitation in remembering the file we've chosen as it is a web application. We can't implement the feature as of now.
@KartikSoneji commented on GitHub (Oct 12, 2022):
Is there a reason the file can't be stored as a base64 data-uri?
@AshotN commented on GitHub (Mar 1, 2023):
@anwarulislam Can it be fixed so that the entire body is not deleted? Not saving the file is reasonable
@ngocthua830 commented on GitHub (Feb 17, 2025):
@anwarulislam I think it’s necessary to save at least the parameter names with empty values. Many people, including myself, get annoyed when the entire body is deleted.
@anwarulislam commented on GitHub (Feb 17, 2025):
Hi @ngocthua830, @KartikSoneji, @AshotN!
I submitted a pull request to fix this issue. The problem will be resolved after the next release!
@jamesgeorge007 commented on GitHub (Mar 7, 2025):
Hi, the proposed fix is live with the v2025.2.0 release. Please feel free to let us know if you have any feedback.