keystonejs/keystone-classic

`select` on Types.CloudinaryImage doesn't do anything

Open

#4.560 geöffnet am 31. Jan. 2018

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (2.288 Forks)batch import
4.x candidatebughelp wantedneeds reproduction

Repository-Metriken

Stars
 (14.656 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

Expected behavior

According to the documentation I can make the user select an existing CloudinaryImage: http://keystonejs.com/docs/database/#fieldtypes-cloudinaryimage

Actual/Current behavior

This is inside my model:

  image: {
    type: Types.CloudinaryImage,
    autoCleanup: true,
    select: true,
    folder: 'users',
    selectPrefix: 'users',
  },

using it with or without folder and selectPrefix, nothing happens to my UI. It's just the normal "Upload image" button.

Steps to reproduce the actual/current behavior

Add select: true to type: Types.CloudinaryImage

Environment

Software Version
Keystone 4.0.0-beta.5 & 4.0.0-beta.8
Node 8.9.4

Contributor Guide