fix GH-627 - error in ajax upload with one file