question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to upload Cloudinary image through Content Field

See original GitHub issue

Bug report

Describe the bug

I do not see the “Add Block” button for the Content field.

To Reproduce

Steps to reproduce the behaviour. Please provide code snippets or a repository:

After starting a fresh project with @keystonejs/example-projects-starter, I attempted to create a Content field for an Article:

keystone.createList('Article', {
  fields: {
    title: { type: Text },
    url: { type: Slug },
    status: { type: Select, options: 'draft, published' },
    postDate:  {
      type: DateTime,
      format: 'MM/DD/YYYY h:mm A',
      yearRangeFrom: 1901,
      yearRangeTo: 2018,
      yearPickerType: 'auto',
    },
    body: {
      type: Content,
      blocks: [
        Content.blocks.blockquote,
        Content.blocks.link,
        Content.blocks.orderedList,
        Content.blocks.unorderedList,
        Content.blocks.heading,
        [CloudinaryImage.blocks.image, { adapter: cloudinaryAdapter }],
      ],
    },
  }
})
  1. Log In
  2. Navigate to Articles
  3. Create new Article
  4. There is not button to add block or upload image
  5. Open Web Inspector
  6. The Add Block button is positioned left: -9999px; top: -9999px;

Expected behaviour

I should see a button to add blocks and clicking it should show me a button to upload an image.

Screenshots

Screen Shot 2020-04-07 at 3 27 34 PM Screen Shot 2020-04-07 at 3 27 42 PM

System information

  • OS: macOS
  • Browser: Tested in Chrome & Firefox

Additional context

No error messages in the console. I was able to successfully create an article and view it but the button still does not display.

@keystonejs/fields 8.0.0 @keystonejs/field-content 5.4.5 @keystonejs/keystone 7.1.0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
3lijahcommented, Apr 8, 2020

Reverting to field-content@5.4.1 appears to fix the issue.

0reactions
bladeycommented, Apr 8, 2021

Keystone 5 has officially moved into active maintenance mode as we push towards the next major new version Keystone Next, you can find out more information about this transition here.

In an effort to sustain the project going forward, we’re cleaning up and closing old issues such as this one. If you feel this issue is still relevant for Keystone Next, please let us know.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Programmatically Uploading Images, Videos, and Other Files
Learn how to upload images, videos, and other files with only a line or two of code - with cloud storage, CDN delivery,...
Read more >
Cannot upload image to cloudinary [#3016606] | Drupal.org
Hello guys I've faced with strange issue when I want to upload image to cloudinary with subfolders which didn't exist there yet.
Read more >
Not able to upload images using cloudinary - node.js
uploader.upload( propertyImage.path, { folder: "/houseImage/" }, async (error, results) => { const image_url = results.url; property.save(err=> ...
Read more >
Image upload with Django and Cloudinary - Alpha Coder
It can be a real pain to have to deal with uploads, storage, manipulation, administration and delivery of media content in every project...
Read more >
Cloudinary Image Upload - The Setup - DEV Community ‍ ‍
Click on the bold text that says Enable unsigned uploading, this allows users to upload images and other assets into your Cloudinary account ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found