Skip to content

TypeError: propertyPath.replace is not a function #62

@eakenbor

Description

@eakenbor

I tried to add the upload feature to my Adminjs but I am getting the error:

TypeError: propertyPath.replace is not a function

I am using Mongoose

Here is my code:

const ImageResource = {
    resource: FileModel,
    features: [
        uploadFeature({
            provider: { aws: AWScredentials },
            properties: {
                key: {
                    type: 'string',
                },
            },
            validation: { mimeTypes: ['image/*'] },
        }),
    ],
}

Company (2)

Please can someone help me with this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions