上传文件到存储位置

Uploading a file to storage location

我无法通过数据管理 API 将文件上传到 BIM 360 存储位置,特别是最后一步,我一直在按照锻造网站上的分步指南进行操作 here and saw an answer however using postman copying and pasting it gets stuck on the final step "update the version of the file" every other step returns correctly however the last one gives me an error 400 BAD_INPUT response, not sure how to format the code and response so i just hosted it here

如有任何帮助,我们将不胜感激!

我刚刚测试了 BIM360 存储位置,它对我来说效果很好,您可能需要记住以下几个问题:

  1. 由于您使用的是 BIM360 集线器,因此当您尝试按照您的描述创建上传文件的第一个版本时,请在 POST 正文中使用正确的扩展类型,对于 BIM360,应该是 items:autodesk.bim360:文件和versions:autodesk.bim360:文件如下:

  1. 当您尝试使用 POST projects/:project_id/storage 在文件夹下创建存储时,在 POST 正文中,您需要指定文件夹,请确保使用允许类型"items:autodesk.bim360:File"的正确文件夹,例如下面的文件夹是我项目的根文件夹,它只允许"folders:autodesk.bim360:Folder"的文件夹,如果您在该文件夹下创建存储,你会得到 403 禁止错误。

但是这个文件夹应该没问题: