Uploading image and referencing users-permissions_user

Add plugin’s name as source field and model name inside the ref:

  data: {
    refId: "607baacc2402bd32b213f639",
    ref: "user",
    source: "users-permissions",
    field: "avatar",
  },

Also, when you get this error: Cannot read property 'associations' of undefined on file uploads, that means the model that you indicated in ref is not correct.

1 Like