Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read properties of undefined (reading 'startsWith') #615

Closed
VisetDev opened this issue Feb 7, 2024 · 1 comment
Closed

Cannot read properties of undefined (reading 'startsWith') #615

VisetDev opened this issue Feb 7, 2024 · 1 comment

Comments

@VisetDev
Copy link

VisetDev commented Feb 7, 2024

Trying to add a image storage field from a document property:

onFetch {profile_url: 'artists/imgs/profile/prof (1).jpg'} <--- entity

const profile_url = buildProperty({
    dataType: "string",
    name: "URL",
    id: "profile_url",
    propertyConfig: 'file_upload',
    storage: {
        storagePath: '/',
    },
});

results in:

TypeError: Cannot read properties of undefined (reading 'startsWith')
at tde (StorageThumbnail.tsx:77:15)
at ede (StorageThumbnail.tsx:58:49)

image

image

this is deployed to app.firecms.co (it also happens in dev)
hope it's clear enough.
tx

@VisetDev
Copy link
Author

VisetDev commented Feb 7, 2024

hi @fgatti675 !
found this: #550 (comment)

it has to do with the file type setting.

@VisetDev VisetDev closed this as completed Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant