I have an Angular application that uses Contentful (v. 5.1.3). I want to upload an asset to Contentful from the Angular app. According to the official site, the correct way to do it is:
client.getSpace('<space_id>')
.then((space) => space.createAsset({ ... })
See here: https://www.contentful.com/developers/docs/references/content-management-api/#/reference/assets
The problem is that the Space object does not have a createAsset method. In fact, the only methods it has are locales, name, sys and toPlainObject.
I installed Contentful with npm install contentful. Is there some kind of issue with the package? Is there a reason why the Space object has been stripped of all useful methods?
Thanks,
Alex