fixed upload of a single file in POST