Previously it would call a single function for all parts. This does not
really represent the common use cases, where the caller knows what part
names to expect.
Using the callbacks argument, one can pass an association list mapping
expected part names to:
a reference that will hold the filename
a callback invoked on every chunk of the file
An extra default_callback argument is provided for parts whose name is
not known in advance, which is not usual but keeps the generality of the
former API.
Previously it would call a single function for all parts. This does not really represent the common use cases, where the caller knows what part names to expect.
Using the
callbacks
argument, one can pass an association list mapping expected part names to:An extra
default_callback
argument is provided for parts whose name is not known in advance, which is not usual but keeps the generality of the former API.