dart-lang / dart-lang/http

Change fileName from optional to required parameter of http.MultipartFile.fromBytes

Open
#390 1 comment 3 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
1.1k
Forks
419
Avg merge
4d 14h
Merged PRs (30d)
8

Description

Hello developers,

I am using http.MultipartFile.fromBytes to send a file to my nodejs backend server
I noticed that fileName is an optional parameter of the method.
but when not assigned, the method work but no file delivered to the server.
I suggest you change fileName to be a required parameter of fromBytes() method.

Thank you

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.