Skip to content
This repository was archived by the owner on Dec 17, 2024. It is now read-only.

Cannot read properties of undefined (reading 'size') in strapi when replacing an image #5

@andreialecu

Description

@andreialecu

Greetings, just took this package for a spin and noticed that when I try to replace an image in the strapi console there's an error:

TypeError: Cannot read properties of undefined (reading 'size')
    at verifySize (/.../node_modules/strapi-provider-upload-local/lib/index.js:15:16)
    at Object.upload (/.../node_modules/strapi-provider-upload-local/lib/index.js:28:9)
    at /.../node_modules/strapi-plugin-upload/config/functions/bootstrap.js:46:33

When uploading new images everything seems to be fine however.

To clarify, I'm talking about this Replace Image button:

Screenshot 2021-11-03 at 13 39 45

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions