Ms office Office 365 API-创建文件夹错误并放置文件;内容长度“; 创建文件夹问题

Ms office Office 365 API-创建文件夹错误并放置文件;内容长度“; 创建文件夹问题,ms-office,office365,Ms Office,Office365,创建与父文件夹同名的新子文件夹时出错 这是我的要求: PUT{base url}/Files/getByPath('/Bug/Bug')-失败,出现409,“NameAlreadyExists” 但是,这将起作用: PUT{base url}/Files/getByPath('/Bug/Bug/Bug2') 注意:没有文件夹/Bug/Bug,在每次测试请求之前,我都会删除此文件夹 以下是我针对这个bug的视频: 内容长度问题 请求: GET{base url}/Files/getByPath('

创建与父文件夹同名的新子文件夹时出错

这是我的要求:
PUT{base url}/Files/getByPath('/Bug/Bug')
-失败,出现409,“NameAlreadyExists”

但是,这将起作用:
PUT{base url}/Files/getByPath('/Bug/Bug/Bug2')

注意:没有文件夹/Bug/Bug,在每次测试请求之前,我都会删除此文件夹

以下是我针对这个bug的视频:

内容长度问题 请求:
GET{base url}/Files/getByPath('/Some.pdf')/content
响应标头中没有“内容长度”标头。为什么?

总结:
  • 无法创建文件夹/Bug/Bug或/Foo/Foo或/New/New或/Foo/Bar/Foo

  • 通过API下载文件时无法获取“内容长度”


  • 呵呵。此外,您还可以尝试
    PUT{base url}/Files/getByPath('/foo3/foo/bar/foo3')
    ,您将获得409 namealReadyExisther he。此外,您还可以尝试
    PUT{base url}/Files/getByPath('/foo3/foo/bar/foo3')
    ,您将获得409 namealReadyExisther he。您还可以尝试
    PUT{base url}/Files/getByPath('/foo3/foo/bar/foo3')
    ,您将获得409个NameAlreadyExists