Image component displays broken img, file upload component works.

  • 1
  • Question
  • Updated 3 years ago
  • Answered
I'm trying to display an image that is attached via a field on a record.

If I use the image component with the following settings, I get the 'broken image'.


If I use the file upload component with the following settings, it works as expected.


Why? What am I doing wrong?
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb

Posted 3 years ago

  • 1
Photo of J.

J., Official Rep

  • 7,470 Points 5k badge 2x thumb
Matt,

Is Photo__c a reference to the Skuid File object? The Attachment field needs an actual Salesforce Attachment Object Id, so if it is a reference to File, you'll need to select the related Attachment Id instead: Photo__c.skuid__AttachmentId__c.
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
That was it! Thanks.