简体   繁体   English

将文件上传到BIM360Docs中的plans文件夹

[英]Uploading a file to the plans folder in BIM360Docs

I'm new to using the data management API to gain access to BIM360Docs, I've successfully downloaded a file from any folder and I can upload to the project files folder, however the issue lies with uploading to the plans folder, all the API calls seem happy and appears to work, but when I check the actual BIM360Docs website it's not there, when I use the API call to display a folders contents it is there, so it appears to be uploading correctly yet isn't visible for some reason? 我是使用数据管理API来访问BIM360Docs的新手,我已经成功地从任何文件夹下载了文件,并且可以上传到项目文件文件夹,但是问题出在所有API上载到plans文件夹调用似乎很高兴并且似乎可以正常工作,但是当我检查实际的BIM360Docs网站时,它并不存在,当我使用API​​调用来显示文件夹中的内容时,它似乎已正确上载,但由于某种原因不可见?

Here it is being uploaded successfully: 此处已成功上传:

此处已成功上传

Here it is being visible using the get folder contents API call but not in docs: 在这里使用get文件夹内容API调用可以看到它,但是在docs中看不到:

在这里使用get文件夹内容API调用可见,但在docs中不可见

So it is there and I can download it and everything is hunky dory I just can't see it on the website. 这样就可以了,我可以下载它,所有内容都很笨拙,但我在网站上看不到。

PS I'm using the step by step guide on the forge site (I'm unable to link as I don't have enough rep). PS:我正在伪造站点上使用分步指南(由于没有足够的代表,所以无法链接)。

Can you tell me to what folder location are you uploading? 您能告诉我您要上传到哪个文件夹位置吗? I'm thinking maybe you are not posting the file to the right location, and that is why you can download it only. 我在想,也许您没有将文件发布到正确的位置,这就是为什么您只能下载它。 In that sense you are correctly creating the storage location, the problem is you are probably uploading your file to the wrong folder. 从这种意义上说,您正在正确创建存储位置,问题在于您可能会将文件上传到错误的文件夹。 Something I can suggest is the following, get a list of all the available folder within the root folder. 我可以建议的是以下内容,获取根文件夹中所有可用文件夹的列表。

// Get Folder //获取文件夹

curl -X GET -H "Authorization: Bearer YOURTOKEN" "https://developer.api.autodesk.com/data/v1/projects/BIM360ACCOUNTID/folders/urn%3Aadsk.wipprod%3Afs.folder%3AYOURROOTFOLDER/contents" 

This will give you back a response JSON of all the folder within your Doc Project. 这将为您返回Doc Project中所有文件夹的响应JSON。 Find the ID of the Plans Folder and continue with the following steps using that folder identifier. 查找计划文件夹的ID,然后使用该文件夹标识符继续以下步骤。

//Step 3: Create a storage location //步骤3:创建存储位置

//Step 4: Upload a file to the storage location //第4步:将文件上传到存储位置

//Step 5: Create the first version of the uploaded file //步骤5:创建上传文件的第一个版本

If everything goes correctly you should be able to see your plans in that location now. 如果一切正常,您现在应该可以在该位置查看计划。 Please let me know how everything goes with this. 请让我知道一切如何进行。 Also check that you have the right Scopes setup in your token that the following ones are included scope= account:read account:write 还要检查令牌中是否具有正确的合并范围设置,以确保包含以下范围:scope = account:read account:write

Also that you have the right permissions within your Docs project to upload. 另外,您在Docs项目中拥有上载的正确权限。

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

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