more robust maxFilesSize implementation
Merge pull request #90 from andrewrk/max-files-size

more robust maxFilesSize implementation