Do not crash when trying to upload multiple files