Autodesk-Forge / forge-derivatives-explorer

Migrated to https://github.com/autodesk-platform-services/aps-hubs-tools
MIT License
27 stars 31 forks source link

Uploading items and folders #3

Open SelaOAL opened 7 years ago

SelaOAL commented 7 years ago

When I try to upload new items to projects that I currently have, I get a upload failed in the page and in the console a huge output and in the end

postItem: failed createNewItemVersionInFolder: failed

So is it even possible to upload new files? Also, is it possible to add new folders?

And on that note some other related questions: Is this the only way to visually view and interact with the hubs and their contents? (other than implementing my own viewer) Is it possible to make this work with BIM 360 TEAM instead? (and when the api will be ready, with BIM 360 DOCS instead)

leefsmp commented 7 years ago

Sorry that's not a place for questions, for this please use stackoverflow with proper tags. Forge is a set of web service APIs, there is no UI provided out of the box, so you need to implement your own. Otherwise you can use Autodesk A360.

Uploading items and creating folders work on my side, give a try in the live sample at https://dm.autodesk.io/.

If you get an error, there must be some more meaningful error message than the one you indicated above. The API should return explicit errors, you need to take a look in the server code to see what is going wrong.

SelaOAL commented 7 years ago

OK I'll ask on SO.

Looks like https://dm.autodesk.io/ is a bit different than this project, is there a repo for this?

It outputs a huge amount of text, I just searched it for the keyword "error" and "fail" but nothing meaningful came up, what else I can look for, for the error?

leefsmp commented 7 years ago

The repo for dm sample is forge-boilers.nodejs and it's a lot different. It contains several project, the data management 3-legged API is project #6.

Uploading items should work fine there, the server side relevant code is DMSvc.js