support for maxFiles