allow custom callback to apply file-based upload path differentiation

Using this to deploy directory-versioned assets, so nice to modify upload path on per-file basis.