1👍
movieImage.addTo(posts)
should be movieImage.addTo(Post)
according to sequelize-file docs.
On the front end side of the Vue.js app, whenever you execute the Post
endpoint, a link should be included in the data payload. The key for the link in the payload should be whatever you’ve named the attribute in the movieImage
SequelizeFile
object. sequelize-file
docs then say it downloads the image at the link and stores it.
okta
is a 3rd party service that handles issuing authentication tokens and verifying requests to a server have authentic tokens. In the Vue.js tutorial how to set this up is explained. sequelize-file
is a package that downloads an image to a location on the database server, then stores the path to that file in the database itself. epilogue
is a package that create a simple rest endpoint that when it is invokes the appropriate action on the database. E.g. ‘post’ leads to save an element to the database based on a model. ‘get’ queries for an element in the database.