1.0.7 • Published 7 years ago

ycs-plugin-fileuploader v1.0.7

Weekly downloads
1
License
MIT
Repository
-
Last release
7 years ago

Installation

ycs add plugin fileuploader

Configurations

import { Ycs } from '@ycs/core';
import { IConfig } from 'ycs-plugin-fileuploader';

const config = Ycs.instance.config;

export const development: IConfig = [
  {
    name: 'images',
    tags: ['__plugin_fileuploader_images'],
    endpoint: '/fileuploads/images',
    path: config.root + '/fileuploads/images',
    authRole: 'fileuploader',
    allowTypes: ['image/png', 'image/jpeg'],
    min: 0,
    max: 1024 * 500,
    errors: {
      empty: 'Empty body',
      type: 'The mimetype of file is not allowed.',
      size: 'The size of file is not allowed.',
    },
    url: x => x.__auth + '/' + x._id + '.' + x.ext,
  }
];
1.0.7

7 years ago

1.0.6

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago

0.0.0

7 years ago