我正在尝试使用 HTTP 客户端
在服务器上上传文件。它成功完成了任务。但是当我尝试上传大小为 1.5 GB 的 Zip 文件时,它会抛出
exception: the request doesn't contain a multipart/form-data or multipart/mixed stream, content type header is null
请帮忙,我该如何解决这个问题*
最佳答案
我认为你应该在http header 中设置正确的内容类型。将内容类型设置为“application/zip”。
关于java - 使用 Http-Client 上传大文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14889703/