react-strapi-img icon indicating copy to clipboard operation
react-strapi-img copied to clipboard

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

Open andreialecu opened this issue 4 years ago • 0 comments

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

andreialecu avatar Nov 03 '21 11:11 andreialecu