Fix response when file is uploaded

Template with response is sent immediately the same way as in `handleImageBrowse`