decap-cms: Can't Upload new image in media

Describe the bug I try to upload in www my web com/admin a new media files, e.g. new photo.jpg then when i choose one and confirm, i get this message in console:

netlify-cms-app.js:25020 Uncaught (in promise) TypeError: Cannot read property 'toLowerCase' of undefined at netlify-cms-app.js:25020 at u (runtime.js:63) at Generator._invoke (runtime.js:282) at Generator.e.<computed> [as next] (runtime.js:116) at asyncGeneratorStep (netlify-cms-app.js:407) at a (netlify-cms-app.js:409) at netlify-cms-app.js:409 at new Promise (<anonymous>) at netlify-cms-app.js:409 at netlify-cms-app.js:25100

– I don’t have this problem in my localhost, i can upload any image with any problem.

  • Netlify CMS version: ^2.9.1
  • Git provider: https://github.com/rjulia/tximak-cms "dependencies": { "@fortawesome/fontawesome-svg-core": "^1.2.19", "@fortawesome/free-brands-svg-icons": "^5.9.0", "@fortawesome/free-regular-svg-icons": "^5.9.0", "@fortawesome/free-solid-svg-icons": "^5.9.0", "@fortawesome/react-fontawesome": "^0.1.4", "bulma": "^0.7.0", "gatsby": "^2.7.3", "gatsby-image": "^2.0.23", "gatsby-plugin-netlify": "^2.0.6", "gatsby-plugin-netlify-cms": "^4.0.0", "gatsby-plugin-prefetch-google-fonts": "^1.4.2", "gatsby-plugin-purgecss": "^3.1.0", "gatsby-plugin-react-helmet": "^3.0.4", "gatsby-plugin-sass": "^2.0.7", "gatsby-plugin-sharp": "^2.1.1", "gatsby-remark-copy-linked-files": "^2.0.7", "gatsby-remark-images": "^3.0.1", "gatsby-remark-relative-images": "^0.2.1", "gatsby-source-filesystem": "^2.0.26", "gatsby-transformer-remark": "^2.3.4", "gatsby-transformer-sharp": "^2.1.9", "lodash": "^4.17.5", "lodash-webpack-plugin": "^0.11.4", "netlify-cms-app": "^2.9.1", "netlify-cms-media-library-cloudinary": "^1.3.2", "netlify-cms-media-library-uploadcare": "^0.5.2", "node-sass": "^4.11.0", "parcel-bundler": "^1.12.3", "prop-types": "^15.6.0", "react": "^16.8.4", "react-cookie": "^4.0.0", "react-dom": "^16.8.4", "react-facebook": "^8.0.4", "react-google-maps": "^9.4.5", "react-helmet": "^5.2.0", "react-share": "^3.0.0", "react-slick": "^0.24.0", "slick-carousel": "^1.8.1", "uuid": "^3.2.1"

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 24 (8 by maintainers)

Most upvoted comments

Had the same issue. Updating packages seems to have fixed it.

From:

"gatsby-plugin-netlify": "^2.0.6",
"gatsby-plugin-netlify-cms": "^4.0.0",
"gatsby-plugin-netlify-cms-paths": "^1.2.1",

To:

"gatsby-plugin-netlify": "^2.1.1",
"gatsby-plugin-netlify-cms": "^4.1.2",
"gatsby-plugin-netlify-cms-paths": "^1.2.2",

Will do, thanks

Again, I’m really trying to help here, but we’re now talking about multiple issues, and since the original post for this issue deleted the issue template that includes a place for steps to reproduce, the purpose of it is no longer clear. It may be best to close this issue and create a new one that properly completes the issue template, but I’ll hold off on doing so if proper steps to reproduce can be provided here.

Sent with GitHawk