search

Home  >  Q&A  >  body text

c++ - 关于删除保存在七牛服务器文件的问题

上传文件的时候需要上传凭证,可以理解。删除文件的时候总提示错误码401,可是删除文件的函数却不用传递上传凭证进去,请问如何正确删除文件

ringa_leeringa_lee2886 days ago596

reply all(1)I'll reply

  • ringa_lee

    ringa_lee2017-04-17 12:00:05

    The credentials required to delete files are management credentials. The main reason why you do not need to pass credentials to delete files is that Qiniu’s SDK directly encapsulates the signature of the management credentials in the upload function. If the deletion operation returns 401, it means that the deletion operation The signature of the management certificate is incorrect. Can you directly provide the code that calls the delete function?

    reply
    0
  • Cancelreply