fixed file upload errors in web UI