• 请不要在回答技术问题时复制粘贴 AI 生成的内容
onlyxuyang
V2EX  ›  程序员

百度的 pcs 分片上传接口有问题

  •  
  •   onlyxuyang · Sep 21, 2015 · 3276 views
    This topic created in 3912 days ago, the information mentioned may be changed or developed.
    百度 pcs 分片上传以后 combine 返回的 md5 和本地算的不一样,但是从百度云上下到本地以后算出来的 md5 又和本地一样...带来的最大影响就是秒传接口无论是传正确的还是 combine 返回的都会提示文件找不到... 头大...
    本地算出来的
    {u'file_name': u'/apps/XXXXXXXX/rapidtest', u'rapid_md5': '502f57f41b9bc960cc3db1a2ec85b25f', u'file_crc32': '0x13eb849fL', u'file_len': 59768832L, u'file_md5': '2bd01a701cf09fd77d879188da9126a2'}
    分片上传以后 combine 的返回值
    {"fs_id":293362371160249,"path":"/apps/XXXXXXXX/rapidtest","ctime":1442765499,"mtime":1442765499,"md5":"4bcc40c5ca90299a3f5ba0f028061d97","size":59768832,"request_id":3825844385}

    可以看出 md5 是不一样的...
    但是最大的问题是秒传接口的那个 content-md5 填哪个都不行....
    头大啊...哪位大大研究过这个么?
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2867 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 08:20 · PVG 16:20 · LAX 01:20 · JFK 04:20
    ♥ Do have faith in what you're doing.