File Upload not working after query

  • 1
  • Problem
  • Updated 3 years ago
  • Solved
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb

Posted 3 years ago

  • 1
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
Pat this is a known issue.  The File component does not react to changes in its underlying model. You may have to find the component in a snippet and refresh it manually. 
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
Here's a workaround using a template component. Skuid__c is the reference field to the skuid__Image__c object.

<img class="nx-attachmentimage-image" src="/servlet/servlet.FileDownload?file={{{Skuid_Photo__r.skuid__AttachmentId__c}}}" style="max-width: 100%;">
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
Thanks for posting the workaround. I really appreciate your willingness to post the answers to your own issues - when you find them.  It makes this community much richer.