Javascript bug on file upload in version 2.1.0.0