29 Nov 2017
Cannot upload to my A360 bucket
I found the bucket where my file on A360 is stored:
https://developer.api.autodesk.com/oss/v2/buckets/wip.dm.prod/objects123.jpg
Now I'm trying to upload a new file in the same bucket using PUT object endpoint, but it fails.
That is because your app does not own the wip.dm.prod bucket - it is owned by A360:
Therefore:
- you cannot list the contents of that bucket
- you cannot just delete any of the objects in it
- you cannot directly upload new objects there
Instead, you have to ask A360 to create an object for you in its bucket using the POST storage endpoint. Then you can upload the content of your file into that object using PUT object endpoint.
This process is nicely detailed on the Forge Developer site:
https://developer.autodesk.com/en/docs/data/v2/tutorials/upload-file/