Skip to content
New issue

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

大文件分片上传 ResumeUploader unexpected file size #361

Open
ijunbin opened this issue Jun 4, 2020 · 0 comments
Open

大文件分片上传 ResumeUploader unexpected file size #361

ijunbin opened this issue Jun 4, 2020 · 0 comments

Comments

@ijunbin
Copy link

ijunbin commented Jun 4, 2020

sdk 版本:"qiniu": "^7.3.1"

上传文件大小:84MB

当前结果:
body:{"error":"unexpected file size"},info:{"status":400,"statusCode":400,"statusMessage":"Bad Request","headers":{"server":"openresty/1.13.6.2","date":"Wed, 03 Jun 2020 22:46:36 GMT","content-type":"application/json","content-length":"32","connection":"keep-alive","access-control-allow-headers":"X-File-Name, X-File-Type, X-File-Size","access-control-allow-methods":"OPTIONS, HEAD, POST","access-control-allow-origin":"*","access-control-expose-headers":"X-Log, X-Reqid","access-control-max-age":"2592000","cache-control":"no-store, no-cache, must-revalidate","pragma":"no-cache","x-content-type-options":"nosniff","x-reqid":"OmsAAAAWd14oKhUW","x-svr":"UP","x-log":"X-Log"},"size":32,"aborted":false,"rt":82,"keepAliveSocket":false,"data":{"error":"unexpected file size"},"requestUrls":["http://up.qiniup.com/mkfile/89128279/key/dGdsL3ZpZGVvLzEzNjE4MDQubXA0/mimeType/dmlkZW8vbXA0/fname/MTM2MTgwNC5tcDQ="],"timing":null,"remoteAddress":"115.238.101.51","remotePort":80,"socketHandledRequests":1,"socketHandledResponses":1}

期望结果:上传成功

其他相关日志:
通过打印 上传文件时progressCallback 回调信息中可以得知:
data大小会比实际文件大小要大,不知道是什么原因导致的。
报错unexpected file size 的好像都会有这个问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant