简体   繁体   English

关于上传机架空间云文件静态大对象的错误422

[英]Error 422 on uploading rackspace cloudfiles static large object

In reference to this: http://docs.rackspace.com/files/api/v1/cf-devguide/content/Uploading_the_Manifest-d1e2227.html 对此的参考: http : //docs.rackspace.com/files/api/v1/cf-devguide/content/Uploading_the_Manifest-d1e2227.html

so I uploaded the following JSON via PUT command on Rackspace: 因此我通过Rackspace上的PUT命令上传了以下JSON:

Body: 身体:

[
    {
        "path": "/archive5/8b98fb0bc6f8694d07a1bc851b58f72a",
        "etag": "8b98fb0bc6f8694d07a1bc851b58f72a",
        "size_bytes": 20971520
    },
    {
        "path": "/archive5/c234d0f0204f67340fb4741bdf9f5e92",
        "etag": "c234d0f0204f67340fb4741bdf9f5e92",
        "size_bytes": 8382711
    }
]

URL: https://storage101.ord1.clouddrive.com/v1/MossoCloudFS_hashhash/archive5/606f95dbf0a17bd7d5de202f3aab98c7?multipart-manifest=put 网址: https//storage101.ord1.clouddrive.com/v1/MossoCloudFS_hashhash/archive5/606f95dbf0a17bd7d5de202f3aab98c7?multipart-manifest = put

Method: PUT 方法:PUT

Headers

ETag: 606f95dbf0a17bd7d5de202f3aab98c7 ETag:606f95dbf0a17bd7d5de202f3aab98c7
Content-Type: application/octet-stream 内容类型:应用程序/八位字节流
Content-Length: 266 内容长度:266
X-Auth-Token: theAuthToken X-Auth-Token:TheAuthToken
X-Auth-Project-Id: theProjectId X-Auth-Project-Id:theProjectId

but then Cloudfiles would then return 但随后Cloudfiles将返回

Problem saving/updating object [ https://storage101.ord1.clouddrive.com/v1/MossoCloudFS_hashhash/archive5/606f95dbf0a17bd7d5de202f3aab98c7] HTTP status [422] response [ 保存/更新对象问题[ https://storage101.ord1.clouddrive.com/v1/MossoCloudFS_hashhash/archive5/606f95dbf0a17bd7d5de202f3aab98c7] HTTP状态[422]响应[

Unprocessable Entity 不可处理实体

Unable to process the contained instructions 无法处理包含的说明

] ]

What did I do wrong? 我做错了什么? I've verified that the files in the JSON body indeed exist and that they have the correct path/etag(md5) and filesize... 我已验证JSON正文中的文件确实存在,并且它们具有正确的路径/ etag(md5)和文件大小...

Have you tried using php-opencloud to do this? 您是否尝试过使用php-opencloud来做到这一点? There's an upload-large-object.php that takes care of all of the details for you. 有一个upload-large-object.php可以为您处理所有详细信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM