Skip to main content
4 votes
Accepted

Media handle hash not being generated

Media Request Protection only kicks in when it needs to. It is designed to prevent media specific parameters from being manipulated (e.g. specifying a MaxWidth for an image of 10248000, forcing ...
Mark Cassidy's user avatar
  • 25.4k
2 votes
Accepted

Add query string to all Media item in Sitecore SXA 9.3

You can implement a custom Sitecore.Resources.Media.MediaProvider. For example public class MediaProvider : Sitecore.Resources.Media.MediaProvider { public override string GetMediaUrl(MediaItem ...
Mark Gibbons's user avatar
  • 5,717
2 votes

Sitecore 9.3 Render MediaUrls by displayname with UseDisplayName from MediaUrlBuilderOptions

I have tried with a vanilla 9.3 and it seems that UseDisplayName isn't taken into consideration at all. I have looked in the MediaUrlBuilder implementation and it seems that UseDisplayName is ...
Cristi Vulturar's user avatar
2 votes
Accepted

Sitecore media with AlwaysAppendVersion set to true adds the revision to -1 for non default language versions

Post some investigation noticed that sitecore adds this rev=-1 whenever there is no language version for the media item in the current language scope !! Although it was a recommended practice for ...
Suneeth Sunkari's user avatar
2 votes
Accepted

Display filename with extension using FileField in Sitecore

Yes, it is possible. You already have MediaItem object. So I can think of 2 ways to get the filename with an extension. 1. Using MediaUrlBuilderOptions get the full URL and split it to get the ...
Sumit Helaiya's user avatar
2 votes

Update Sitecore ImageField with Media Item from Content Hub

Figured out how to solve this myself so I wanted to post this in case anyone else needs help with this. I realized that the FieldItems are just xml so I created a new ImageField and then added the ...
aurvandel's user avatar
1 vote
Accepted

Change ItemNotFoundUrl Setting in sitecore

While using SXA, there is a handler for transferring the request when media item is not found. Sitecore.XA.Feature.ErrorHandling.Pipelines.MediaRequestHandler.HandleErrors, Sitecore.XA.Feature....
ckhanna's user avatar
  • 3,709
1 vote
Accepted

Why Sitecore renders url of media item as short id?

Apparently there must be some issues with Sitecore 10.4 and useDisplayName parameter of DefaultMediaUrlBuilderOptions. Changing useDisplayName to false did the trick - now all the media urls are built ...
Marek Musielak's user avatar
  • 24.2k
1 vote

Bulk download media library in Sitecore Media Library without Encoding file names

I got this Powershell script and found that it also downloads the file names with encoded names. So I have updated the script slightly and it now downloads all the files in your download folder with ...
Sumit Bhatia's user avatar
  • 5,919
1 vote

Is there a setting that limits amount of parallel image resizes? When there are multiple images on a page performance is really slow

What I expect is happening is that there are a lot of calls being generated by the page and that is slowing down images. I am assuming all the images are in the Media Library. You can look at cache ...
Vinu Krishnaswamy's user avatar
1 vote
Accepted

JSS returns 404 for media items in Richtext

The issue is that JSS needs the media library link to start with forward slash: <a href="/media_library_prefix/~/media/d494d2a8a8554dbf977695dbdd4e94b5.ashx">
iusmar's user avatar
  • 239

Only top scored, non community-wiki answers of a minimum length are eligible