String uptoken = getUploadToken();
PutExtra extra = new PutExtra();
MultipartHttpServletRequest mhsr = (MultipartHttpServletRequest) request;
MultipartFile mFile = mhsr.getFile("f");
PutRet ret = IoApi.Put(uptoken, "xx.jpg",mFile.getInputStream(), extra)
然后 ret.response只是返回了一个0.。这是为什么
求大牛帮忙啊。。 在线等
Can you provide your token? If
ret.response
only returns 0, then there are two situations. One is that thereturnBody
set in the upload strategy returns a variable with a value of 0; the other is Yes, in the upload strategy, the setcallbackUrl
responds to a{0}
json when responding to the Qiniu callback.