We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
用户上传文件,需要把文件和用户ID 绑定,所以用户id需要一起上传
用rxUploadWithPartMap,都添加上去行不通,请问怎么 把参数跟文件一起上传?
var string="audio/mp3" var requestBody= RequestBody.create(MediaType.parse(string),mp3File) val maps= ArrayMap<String, MultipartBody.Part>() maps["file"] = MultipartBody.Part.createFormData("file", mp3File.name, requestBody) maps["bizId"] = MultipartBody.Part.createFormData("userID", "649")
novate.rxUploadWithPartMap(URL, maps, object : RxStringCallback() {})
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
No branches or pull requests
用户上传文件,需要把文件和用户ID 绑定,所以用户id需要一起上传
用rxUploadWithPartMap,都添加上去行不通,请问怎么 把参数跟文件一起上传?
var string="audio/mp3"
var requestBody= RequestBody.create(MediaType.parse(string),mp3File)
val maps= ArrayMap<String, MultipartBody.Part>()
maps["file"] = MultipartBody.Part.createFormData("file", mp3File.name, requestBody)
maps["bizId"] = MultipartBody.Part.createFormData("userID", "649")
novate.rxUploadWithPartMap(URL, maps, object : RxStringCallback() {})
The text was updated successfully, but these errors were encountered: