keystonejs/keystone-classic
Vedi su GitHubKeystone Beta 4.0.0-beta.5 - required being ignored for type: Types.File and image preview not working
Open
#4064 aperta il 3 mar 2017
bughelp wanted
Metriche repository
- Star
- (14.656 star)
- Metriche merge PR
- (Nessuna PR mergiata in 30 g)
Descrizione
The admin is ignoring that a file is required and also it's image preview:
image: {
type: Types.File,
storage: storage,
filename: function (item, file) {
return item.id + '.' + file.extension
},
format: function (item, file) {
return '<img src="' + file.href + '" style = "max-width: 120px">'
},
allowedTypes: ['jpg', 'png', 'jpg', 'gif'],
required: true,
initial: true,
},
