-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Image upload broken on basic demo #924
Comments
same if using latest dist 1.0.2.. |
I can see the error, but when I save the page, the image then works. Can you please try and see if it works after saving? We are working on fixing the issue where the image looks like it is broken. |
I think the problem here is that as long as the build is not done, the image does not exists.
So, to provide a smoother experience this needs a solution:
|
hello sorry i havent been watching this issue closely since i went to another cms solution. it seems like you know what is going on here so i'm glad to have pointed it out for fixing based on your priorities. ultimately this is not a high priority for me so feel free to close the issue (or continue without me). i was just excited about the JAMstack and wanted to try this out. |
@tech4him1 yes, if the image is uploaded the first time you insert in, in an entry.. |
Is this being addressed? |
When you upload an image, that commit will trigger a build. Normally a missing image will simply result in a 404 in the preview pane image, but maybe there's a custom preview template or widget that isn't handling the missing image so well. |
@Strangehill I've just tested this on a deployed fork of gatsby-starter-netlify-cms with no issues. This was also using version 1.2.2, which the Netlify CMS Gatsby plugin is currently stuck at. Can you help us reproduce? |
I just tried this again and this happened: |
Can you link to a repo with this issue so we can clone and reproduce? Sent with GitHawk |
@Strangehill Also, is the repo private in GitHub? And are you using Git Gateway? |
Yes, it is private. And it's using the git gateway. I'll try reproducing in an otherwise configured repo. |
I've just tried it on a public repo, default Gatsby starter, so also with Git Gateway. The media library thumbnails work fine now, and the upload there of a new picture with its thumbnail too, so I select my the picture and then, back in the editor, the image widget shows a broken thumbnail in both the editor and the preview pane. I close and open the widget in the seconds that follow but they don't change. I leave it alone for a couple minutes, and I try closing and opening the widget again, which then seems to make the images appear properly in both editor and pane. https://vigorous-visvesvaraya-1f0175.netlify.com/ EDIT: this starter I deployed in mid february, I've also just tried it with a starter deployed today and everything smoothly... |
Ah, right. Also note that the Gatsby plugin is setting the Netlify CMS version, so you'll need to override with |
BUG REPORT INFORMATION
- Do you want to request a feature or report a bug?
Bug
- What is the current behavior?
in the deploy-to-netlify gatsby demo, just trying to upload and add an image to a post, it starts failing:
- If the current behavior is a bug, please provide the steps to reproduce.
as above. just try to insert any image into the default gatsby template
- What is the expected behavior?
it should insert the image smoothly.
- Please mention your CMS, node.js, and operating system version.
n/a
The text was updated successfully, but these errors were encountered: