fix upload of multiple files