Open tusharad opened 2 months ago
@ocramz, I have added the test-cases.
@tusharad since this change would break users of many versions of scotty (for good or worse: users will rely on every observable feature of a software), maybe it's a good idea to review how other web frameworks behave with empty files input.
Please visit issue #396 for more details.
Issue
When using
files
orfilesOpts
function, upon not uploading any file, these function would still return a list of tuples containing filename as"\"\""
and fileContent as"\"\""
.Solution
parseRequestBodyExBS
which converts the body into the list of FileInfo type, that will remove any file whose filename is"\"\""
.changelog.md
underbreaking changes
as well.Thanks.