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";