Implemented maximum file size limit for import
Implemented @jburel suggestions
Merge pull request #2324 from dominikl/rebased/dev_5_0/limit_number_of_imports

Implemented maximum file size limit for import (rebased onto dev_5_0)