updated to upload multiple files at a time