Multipart body is missing the ability to add a filename #212
Labels
enhancement
New feature or request
Standard GitHub label
Issue caused by core project dependency modules or library
Hi there,
I am trying to use
Multipart
andAddOrReplacePart(string, string, Stream)
to upload files to my ASP.NET API.The API is unable to bind the submitted values to an
IFormFile
field.After some trial-and-error I found out that it is because the request generated by kiota is missing the
filename
field in theContent-Disposition
header.I had to "hack" it in using this:
Notice the
\"
to hijack the"
from theWriteStringValue
call inMultipartBody
.Do you plan to add support for adding parts with filenames/custom content-disposition values?
The text was updated successfully, but these errors were encountered: