web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / How to refer image in ...
Power Pages
Answered

How to refer image in web-template through visual code

(0) ShareShare
ReportReport
Posted on by 9

Hi,

 

tried referring an uploaded image in web-template but its not showing up in a page, did cache refresh in browser still doesn't show up, is my reference path right?, or am i missing something, 

 

and do i need to use only .png images in web templates, do other formats like .gif and .jpeg allowed?

Sannadi77_0-1682515495367.png

Sannadi77_1-1682515574548.png

 

 

Categories:
I have the same question (0)
  • Verified answer
    ragavanrajan Profile Picture
    7,044 Most Valuable Professional on at

    Hi @Sannadi77 

     

    Try this way 

     

    In portal management: 

     

    1.  Under Content  Web Files > Hit New 

    2. Provide the name 

    3. Make sure your parent page is set to "Home" 

    4. Enter the partial URL just like the Name field. 

     

    Screenshot below for reference 

     

    ragavanrajan_0-1682904284870.png

     

    To refer the image in the web template or in your HTML . Below is the reference 

    ragavanrajan_1-1682904809240.png

     

    Either you can do an absolute path like my screenshot or do a relative path like "\image.jpg" 

     

    Note: Any image file formats are allowed


    Hope it helps. 
    ------------

    If you like this post, give it a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.

  • Sannadi77 Profile Picture
    9 on at

    Thanks for the response, but found the solution by trail and error approach, appreciate your help, accepted your answer

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
sannavajjala87 Profile Picture

sannavajjala87 42 Super User 2026 Season 1

#2
Valantis Profile Picture

Valantis 33

#3
11manish Profile Picture

11manish 20

Last 30 days Overall leaderboard