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
mime/multipart: ParseForm excludes parts with empty name #63629
Comments
I don't think you've shown the part where the file is read, nor that it isn't something like antivirus removing the file. |
sorry, i have change the code.the new code is that
i can’t get the value when i post a form-data and the name is empty string.i can’t get the file, when the name is empty string. |
seems like an unfortunate consequence of not being able to distinguish between empty and unset https://cs.opensource.google/go/go/+/refs/tags/go1.21.3:src/mime/multipart/formdata.go;l=123 If you need it, you can use the multipart Reader directly to parse the body. |
in that code https://cs.opensource.google/go/go/+/refs/tags/go1.21.3:src/mime/multipart/formdata.go;l=123.
is it a read formdata.go's bug. i am a new gopher, so i need your help. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
the program is that!
and the request is that
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: