TMultipartFormData上传文件
2020-07-14 19:05 su_hq 阅读(507) 评论(0) 编辑 收藏 举报
java写的后台,上传文件时出错。
运行时异常:Failed to parse multipart servlet request; nested exception is java.io.IOException: org.apache.tomcat.util.http.fileupload.FileUploadException: the request was rejected because no multipart boundary was found
解决方法:
//必须设置boundary
NetHTTPClient1->ContentType ="multipart/form-data;boundary=1";