Some fixes in expection logging, template files and resizing mosaico images
This commit is contained in:
parent
63cfb22025
commit
3b20ac5ce7
5 changed files with 43 additions and 79 deletions
|
@ -156,7 +156,6 @@ function getRouter(appType) {
|
|||
// This is a fallback to versafix-1 if the block thumbnail is not defined by the template
|
||||
router.use('/templates/:mosaicoTemplateId/edres', express.static(path.join(__dirname, '..', '..', 'client', 'static', 'mosaico', 'templates', 'versafix-1', 'edres')));
|
||||
|
||||
|
||||
fileHelpers.installUploadHandler(router, '/upload/:type/:entityId', files.ReplacementBehavior.RENAME, null, 'file', resp => {
|
||||
return {
|
||||
files: resp.files.map(f => ({name: f.name, url: f.url, size: f.size, thumbnailUrl: f.thumbnailUrl}))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue