Skip to content
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

Issue: Remote Images in "image" type results in "error loading field" #494

Closed
traeblain opened this issue Jan 24, 2023 · 3 comments
Closed

Comments

@traeblain
Copy link

Describe the bug
When a remote resource (remote image) is used in the "image" type, an error is provided and now image is generated for the isPreviewImage in the post/page list.

To Reproduce
Steps to reproduce the behavior:

  1. Setup an image type field
  2. Add a remote resource to the field (i.e. https:://example.com/image.jpg)
  3. Look at Front-Matter sidebar
  4. See error "error loading field"
  5. See no image in Preview on the post/page list

Expected behavior
Still show the image thumb in FrontMatter (remove option still available), and see the image in the preview on the dashboard.

Screenshots
image

Desktop (please complete the following information):

  • OS: ubuntu
  • Browser: chrome
  • Version: 109

Additional context
I know there the "remote media" enhancement #445 that is looking to enhance the media library, but if you don't use a local media library (i.e. CDN media storage) you cannot even use the links without dealing with this error. I understand Front Matter isn't ready to deal with remote libraries yet, but if I paste in the URL to an image field manually, expectation is that it would at least still show...even if it's not local.

@traeblain traeblain added the bug Something isn't working label Jan 24, 2023
@estruyf
Copy link
Owner

estruyf commented Jan 28, 2023

It is by design, as the field expects to render only images from the current project.

It is an excellent enhancement to get this also supported!

@estruyf estruyf added enhancement New feature or request and removed bug Something isn't working labels Jan 28, 2023
@traeblain
Copy link
Author

Awesome, hope it happens. I use Cloudinary, and I know getting those media libraries setup is down the road, but simply supporting remote images will make Front Matter the perfect CMS for my use case. Good work all.

@estruyf
Copy link
Owner

estruyf commented Jan 30, 2023

Support has been added to the latest beta version @traeblain - feel free to try it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants