justinwoodcock / Loopback-Upload

This project is for demonstrating how to implement file upload functionality using the NodeJS framework LoopBack, creating a reference on how to recreate it step by step.
28 stars 8 forks source link

Should be Model instead of PeristentModel #2

Open thefinnomenon opened 8 years ago

thefinnomenon commented 8 years ago

Using PersistentModel I get the following error while trying to create a container,

"Cannot call container.create(). The create method has not been setup. The PersistedModel has not been correctly attached to a DataSource!"

Changed my Container model from a PersistentModel to a Model & it works fine now. see [https://github.com/strongloop/loopback-component-storage/issues/83]

delmotte commented 8 years ago

@thefinnomenon this solved my problem too thanks