adds name and mimetype to fromStream factory function
adds setters on BinaryData for name and mimetype
Example use in map
map Example {
// need to do comlink variable assign to be able to use Script expression
tmp = (input.file.name = input.filename)
tmp = (input.file.mimetype = input.mimetype)
http POST "/" {
request "multipart/form-data" {
body = {
file: input.file
}
}
response 200 {
map result body
}
}
}
Motivation and Context
Comlink author may need to set mimetype or name from within the map.
Types of changes
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
[x] I have updated the documentation accordingly. If you are changing code related to user secrets you need to really make sure that security documentation is correct.
Description
name
andmimetype
tofromStream
factory functionBinaryData
forname
andmimetype
Example use in map
Motivation and Context
Comlink author may need to set mimetype or name from within the map.
Types of changes
Checklist: