Currenty, when we call SendFile(b, "file", "filename"), "file" will be changed to "file1", "file2", etc.. This is not good if we are dealing with a server that require a multipart with a fieldname equal to file.
I added an optional bool parameter skipFileNumbering in SendFile which disable adding those numbers
I am adding the possibility to skip appending numbers but without breaking compatibility or changing behavior of any existing code.
Currenty, when we call
SendFile(b, "file", "filename")
,"file"
will be changed to"file1", "file2", etc.
. This is not good if we are dealing with a server that require amultipart
with afieldname
equal tofile
.I added an optional
bool
parameterskipFileNumbering
inSendFile
which disable adding those numbersI am adding the possibility to skip appending numbers but without breaking compatibility or changing behavior of any existing code.