Skip to main content

Questions tagged [media-library]

Anything related to media stored in the database or file system and created as items in the Media Library.

Filter by
Sorted by
Tagged with
1 vote
1 answer
31 views

File download fails between transfer

lately I'm encountering a weird issue with Sitecore 9.0.3. When I try to download a PDF file from the server, the transfer fails somewhere in the middle. It looks like a timeout. I tried to download ...
gtu's user avatar
  • 111
0 votes
0 answers
54 views

Images are not getting displayed on Vercel site but are visible in sitecore xmc pages editor

After publishing the item, images are NOT loading on the Vercel site. When I try to click on image link from the edge it gives following error - ERROR 9404: Could not fetch the image — the server ...
shrutika shete's user avatar
1 vote
1 answer
89 views

Error (404) Loading Images Published to Experience Edge Using Image Sizing Parameters

I'm troubleshooting an issue loading images published to Experience Edge using the image sizing parameters, e.g. mw= (reference). As an example, let's say the Experience Edge URL for a published image ...
nsturdivant's user avatar
2 votes
1 answer
61 views

DefaultMediaItemTextExtractor: Cannot extract content from media item with id - Expected pdf format

While reindexing my master / web indexes, the reindex failed and I saw these error messages in the logs: Sitecore.ContentSearch.ContentExtraction.Common.DefaultMediaItemTextExtractor Exception: ...
Marcel Gruber's user avatar
1 vote
1 answer
49 views

Media field attachment preview image is full-sized instead of thumbnail-sized [closed]

I have content management sites (Sitecore 10.2.1) in 3 different environments. On my non-production sites, my image media library items show reasonably sized attachment previews such that I can easily ...
Marcel Gruber's user avatar
1 vote
1 answer
64 views

Where / How is Title determined when uploading file [closed]

[Sitecore XP] When uploading documents or images in media library the Title field under Information is populated automatically. It feels this depends also on the file extension, which is probably why ...
z00mable's user avatar
  • 621
0 votes
1 answer
133 views

Sitecore Media Items not showing up in List view of dialogue box

I have recently updated my local Sitecore setup to 10.3 from 10.1 and found out that the media items are not loading in the list view of the Select Media dialogue box while the tree view working fine. ...
Tabbuu's user avatar
  • 75
0 votes
1 answer
18 views

How are Attach Permissions Governed for Image Types [duplicate]

We have some elevated users who occasionally need to update particular images in our system. These images reside in our media library and the users (through their roles) have been granted every ...
Ron Ritchie's user avatar
1 vote
2 answers
297 views

Media (Images) not loading and media dialog shows error

We have upgraded Sitecore 9.0.2 to Sitecore 9.3 and it is SXA based solution. And media search is not working after the upgrade. The Media dialog box shows an empty result and returns a response as ...
Sumit Helaiya's user avatar
0 votes
0 answers
53 views

Error message in EXM when using the external image hosting link

I have created an Email campaign via Sitecore, and in my HTML code for the E-mail I used an external link for the image (from the media hosting). When I wanted to send it out via list delivery, I got ...
Lizaveta Andryukhina's user avatar
0 votes
0 answers
42 views

Zip files not being bucketed

When uploading a .zip file to a bucket in the media library, the .zip file does not get put in a bucket. I can't figure out why. E.g. The zip item is set to be bucketable: And I have created a ...
Linas's user avatar
  • 88
1 vote
1 answer
293 views

How to download media item to SitecoreTempFolder?

I'm wanting to clean-up the media library, I have a script that outputs unused media library IDs. I then want to grab the media item associated with these IDs and download them to a temporary folder (...
Rick's user avatar
  • 13
2 votes
1 answer
100 views

Media Items not getting indexed after creation in CMS

I am facing issue with Media file indexing in Sitecore 9.2. When I upload one media file in CMS, then after save the media file is not getting index in Solr. But If I create a package of Media item ...
Koushik Mukherjee's user avatar
1 vote
1 answer
78 views

How to change Media Library Theme Path(custom theme folder path) in existing FrontEnd code solution

I have requirement to setup theme for new microsite in our sitecore-SXA project so follow below steps do it, and it works fine too. npm config set @sxa:registry https://sitecore.myget.org/F/sc-npm-...
Rinku Jain's user avatar
1 vote
0 answers
51 views

Apply authentication to media files

We are using Sitecore 9.3 with SXA. I have some pdf files stored in the media library in sitecore. These files can be downloaded by users after logging in to the site. There is a security finding that ...
NewbieHere's user avatar
1 vote
3 answers
500 views

How to require alt text when uploading an image in the experience editor?

How can I make this field required so that a user can't upload an image without the alternate text box having a value?
Pinpaho's user avatar
  • 61
1 vote
1 answer
119 views

Issues while generating the media item url with space in item name

we have the below configuration with Sitecore 9.3 <encodeNameReplacements> <replace mode="on" find=" " replaceWith="-" /> </encodeNameReplacements> ...
D J's user avatar
  • 385
0 votes
3 answers
156 views

Media with aspx extension is not working

We have migrated to Sitecore 10.1 from Sitecore 8.7. In Sitecore 8, For-example, if the image location is /-/media/Project/Os-Theme/Styles/images/logo Then the following url returns the same image <...
Owais Ahmed's user avatar
3 votes
2 answers
301 views

Publish Media item as soon as uploaded

I want to publish the Media item as soon as it is uploaded in the Media library. I was looking at different pipelines to resolve this but couldn't figure out which one is the ideal one to do so. As it ...
Meghan's user avatar
  • 427
2 votes
1 answer
255 views

Azure blob migration issue: no media attachment in themes items

Recently, we did Azure blob migration. Installed package Ran scripts Now media items are linked to an azure blob. Images are coming on the website on CM and CD. However, no themes are loading on the ...
Jagmeet Kaur's user avatar
1 vote
2 answers
344 views

Disable Media.RequestProtection when page is in preview mode

I have Media.RequestProtection enabled in my Sitecore 10.0 instance. Is there way to disable this only for preview and experience editor mode.
rahul's user avatar
  • 21
1 vote
1 answer
65 views

Locked Media Library Items Cannot be Read by Non-Administrator Users

Our Media Library items are behaving differently from items in our content tree when locked. User accounts with the Administrator flag on can, of course, move around as usual. But any other user ...
eidolonic's user avatar
1 vote
4 answers
949 views

Media Library File Upload Fails

In Sitecore 9.2, our user is trying to upload a fairly large file (Large, but within configured limits.) In the Media Library, we navigate to the desired folder, click Upload, select the desired ...
Ron Ritchie's user avatar
1 vote
2 answers
676 views

Display filename with extension using FileField in Sitecore

I need to display the filename with an extension for a File type field in Sitecore SXA 10.2. The field value in content contains an Url that points to the pdf documents in Media Library. var fileField ...
Siddhi Kamat's user avatar
4 votes
1 answer
179 views

How to Compress and Optimize the Video File Size

We are using SXA module in Sitecore 9.0.2. Our requirement is that while uploading a video file in to Sitecore CMS, how can we optimize or compress the size of video file. Please help on how to ...
Ratnesh Pandey's user avatar
0 votes
0 answers
51 views

Sitecore Select Media return empty in Experience Editor - Multisite SXA

We have recently upgraded the Site from v9.2 to 10.2. We have maintained multisite with SXA. In the old Site, we used Azure Search and now converted it into Solr search. After integrating all the ...
Rameshkumar's user avatar
1 vote
2 answers
110 views

Scanning files under media for vulnerability

We would like to scan our solution for security vulnerabilities. We already have a tool for static analysis. The problem is as follows: We are using the Sitecore media library to host the jQuery files ...
NutsAndBolts's user avatar
  • 1,342
2 votes
2 answers
1k views

Disable Image Upload button in Rich Text Editor

Is it possible to remove/disable the image icon in the Rich Text Editor's toolbar. All the images in this project come from Content Hub and client wants the CMS feature for image uploads to be ...
sukesh's user avatar
  • 3,162
0 votes
1 answer
246 views

How to replace image in sitecore media library programmatically [duplicate]

Database master = Sitecore.Configuration.Factory.GetDatabase("master"); var item = master.GetItem(new ID("{493E6479-D647-4120-A543-B20924F24978}")); item.Editing.BeginEdit(); //I ...
Ranjeet's user avatar
  • 13
2 votes
1 answer
906 views

How do you get JSON data from an item stored in the media library?

master:\media library\item-name contains a JSON file. Get-Item gets the item itself but I am unable to extract the JSON content with ConvertFrom-Json. In PowerShell outside of Sitecore Powershell ...
Anthony's user avatar
  • 167
0 votes
1 answer
2k views

does sitecore support WebP or AVIF images [duplicate]

I am looking at a requirement where webp image support is expected. Does Sitecore 10.2 support webp or avif images. I tried uploading a webp to the media library and it seems to upload. but when I ...
Shejoy Cherian's user avatar
1 vote
2 answers
125 views

I have media in my media library that has been detached and I would like to know who detached it

I would like to know who detached the media because it seems that the media is detached from the Detach link of the media in the media library. I tried detaching the media, but it didn't seem to be ...
m.kawasaki's user avatar
1 vote
2 answers
79 views

When an image is uploaded to the Media Library, how long does that image stay on the Recently Updated Images list before it falls off the list?

I think the answer is “it stays recent until the media cache is clear”. However, I am not 100% sure that is the best answer.
Christopher W's user avatar
4 votes
1 answer
220 views

Why is Select Media Dialog Empty When Media Exists in Folder?

When we try to Browse to select an image for an image field, nothing appears in the Select Media dialog though we've confirmed there's content in the folder designated in the field's Source attribute. ...
Ron Ritchie's user avatar
1 vote
2 answers
628 views

How to download media item from media library in sitecore?

I tried to download a media item from media library to my local storage using the Item ID. But it downloaded only in cache storage. I want to download it in downloads folder. public void downloadform(...
Raviraja's user avatar
1 vote
1 answer
216 views

How to Programatically attach a Media File of System.IO.File type

We are trying to programmatically attach Media File to a Media Item at the latest version. Our requirement is to programmatically extract the file (System.IO.File) from the Local System and attach to ...
Sylesh JL's user avatar
  • 191
0 votes
1 answer
202 views

how to set an item Image field

Using Sitecore PowerShell Extensions I can set an item's text properties but an Image property cannot be set: In the screenshot above, setting the Title property worked but none of the attempts at ...
Anthony's user avatar
  • 167
1 vote
2 answers
340 views

Latest Versioned Media Item is not Updating on Front End Website

We are using Versioned Media Items on our website. Our media URLs will be in the format - https://domain/-/media path.pdf?sc_lang=en&hash=6952A5CAEA1FC60BEF7CCDF29B0293E2 After we attach a pdf ...
Sylesh JL's user avatar
  • 191
0 votes
2 answers
1k views

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

I want to bulk download Media library in Sitecore Media Library after going through following solution Bulk download PDF media in Sitecore Media Library , but I found that after downloading zip file ...
Kumari Dimple's user avatar
1 vote
3 answers
383 views

How to get media library item names in csv which has file extension .pdf, .doc and .xls?

I am looking for a solution to list items in the media library with file extensions pdf, doc, and xls followed by exporting to a csv.
Kumari Dimple's user avatar
2 votes
2 answers
291 views

Creating media library packages when using Azure Blob Storage

We are working on an upgrade project and are considering using the Azure Blob Storage module to store media outside of the database. Since the media is no longer stored in the database and is instead ...
jammykam's user avatar
  • 13.8k
0 votes
1 answer
551 views

How to get all the media library items that are used/displayed on a page?

So we already have a custom site map generation service in our Sitecore 9.2 solution, to generate standard sitemap.xml files, which is working absolutely perfectly. However, we now want to extend it ...
Adam Brunt's user avatar
1 vote
1 answer
374 views

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

Environment: Sc 10, SXA 10x, Azure PaaS Sitecore adds query string param rev=-1 to the media url whenever there is no language version available for asset other than default Language. ex: /-/media/...
Suneeth Sunkari's user avatar
0 votes
1 answer
387 views

How to Programatically update the media attachment in the specific version of a media item in Sitecore 9.3

I am currently trying to update a media item programmatically. Methods like Create From File or Create From Stream are removing all the versions of the media item item and restarting from Version 1. I ...
user11803's user avatar
2 votes
4 answers
459 views

Is it possible to preload an image for the hero banner in Sitecore to improve LCP?

We are trying to improve the LCP score of our site and one of the elements we want to optimize is the large image used in the hero banner of each page. Is there a way to set this image to be preloaded?...
Rob Connolly's user avatar
1 vote
2 answers
367 views

How to update Item's Media Properties using SPE (Sitecore Powershell Extensions)

I have an Image Field in an Item. When the image is uploaded to Media Library, the Alt field is not updated and hence when we look at the Image properties from Item, it is Blank. So far so good. The ...
Yeshwanth's user avatar
1 vote
0 answers
185 views

Dianoga errors in the logs for temporary file paths

Getting the below errors related to Dianoga in log files related to temporary file paths. Dianoga version used is 5.4.1 ERROR Dianoga: Unable to optimize {Image path} due to a processing error! It ...
Swathi's user avatar
  • 11
0 votes
2 answers
393 views

Dianoga image optimization error for few of the images

Getting the below error in Dianoga logs. The version used is 5.4.1 - ERROR Dianoga: Could not resize image as it was larger than the maximum size allowed for memory processing Also, the load time of ...
Swathi's user avatar
  • 11
1 vote
3 answers
1k views

How to get all image field that is included in a page using Sitecore PowerShell and create new language version for images

I would like to know how to get all related media id's from page using Sitecore PowerShell module and create new language definition for media items. So we have a page that have image field in data ...
user avatar
0 votes
1 answer
104 views

Media item upload request

Is there a way to check if the request is coming from Browse for media files Or is it coming upload file or upload files I have code to check upload image size public class ImageSizeCheck : ...
Owais Ahmed's user avatar

1
2 3 4 5
7