-
-
Notifications
You must be signed in to change notification settings - Fork 615
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File
to Blob
#3119
Comments
hmm.. As @nakasyou said, But, Node.js is using |
According to this jsdoc, if a Blob object is passed to @param value The field's value. This can be [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob)
or [`File`](https://developer.mozilla.org/en-US/docs/Web/API/File). If none of these are specified the value is converted to a string.
@param fileName The filename reported to the server, when a Blob or File is passed as the second parameter. The default filename for Blob objects is "blob". The default filename for File objects is the file's filename. |
@EdamAme-x, it's a used in output only. FormValue in Hono is for input, so we should change it. Footnotes |
Client uses |
Thanks @nakasyou |
I've been using Hono with Bun in production apps, and I'm using just |
What is the feature you are proposing?
This is not a bug or a new big feature but a minor change that will be
fix
.As @nakasyou said in this comment,
FormData
can acceptBlob
object as a value. It's better thanFile
, that subclass ofBlob
. We have to replaceFile
toBlob
.The text was updated successfully, but these errors were encountered: