Issue refs #1721: fixed bug with multiple uploaded files