Configuration

If the data of your app is added manual , you can override the media like what we do in the form :

import { CmsMediaListComponent } from '@tradinos/cms-frontend-media';
override manualInputsFn = (user?: User) =>
[
   //override where you extend the CmsService
  {
    key: 'file',
    label: 'fileId',
    inputType: FormInputType.file, // you can upload file not only image
    imageConfiguration: {
      type: 'circle',
      componentRef: CmsMediaListComponent,
      valueType: 'id',
      path: user?.image?.path,
    },
  },
] as FormInput<User>[];

Last updated