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
2 answers
629 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(...
0 votes
1 answer
165 views

Media library images not displaying - Invalid URI: The URI is empty

I'm on Sitecore 9.0. Sporadically after a build, the Media Library images all display as broken and when I try to browse to an image directly (e.g. mysite.com/-/media/images/logo.png) I see a server ...
1 vote
1 answer
217 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 ...
0 votes
1 answer
2k views

Is there a way to use a custom MediaRequestHandler for certain folders in the media library?

I have a special folder in the Sitecore media library (v9.1.1) that I would like to run a custom MediaRequestHandler on. The path to the folder is /media library/files/securefiles. I read this post ...
1 vote
2 answers
351 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.
1 vote
1 answer
94 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 ...
1 vote
1 answer
33 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 ...
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 ...
0 votes
4 answers
604 views

Alt text in custom image bind

We are creating image tag from the programming in Sitecore 9.1.1. Using the below code. var image = new MediaItem(imageField.MediaItem); src = StringUtil.EnsurePrefix('/', ...
0 votes
1 answer
821 views

ERROR Could not run the 'getMediaStream' pipeline for '/sitecore/media library/Images/test '. Original media data will be used

I’ve extended SqlServerDataProvider to use the azure blob storage account for storing the media library assests. I’ve taken reference from below GitHub project: https://github.com/aweber1/Sitecore....
0 votes
1 answer
731 views

Media file item looses blob value after publish

This is in Sitecore 9.1 where I have a pdf file media item in sitecore, that is browsable all good from the CM site (master DB) but when I try to browse to it on the CD site (web DB), it gave me a 404 ...
0 votes
1 answer
100 views

Few media files getting downloaded

We are working on Sitecore 8.1 instance where we have got a security issue. As per the issue, few media files are getting downloaded directly when we hit the url. Example - https://hostname/-/media/...
3 votes
2 answers
710 views

Create media item and specify item id

I have a scenario where I need site visitors to be able to upload media items via CD server. My plan is to upload to web database first and use EventQueues to then have the CM server fetch the ...
1 vote
3 answers
514 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?
0 votes
0 answers
59 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 ...
0 votes
1 answer
134 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. ...
0 votes
0 answers
1k views

Sitecore images served as ashx when Media.RequestExtension setting is blank

We've just deployed to a new environment and expected images from the Media library to be referenced with their original file extensions e.g. .jpg as the Media.RequestExtension setting is ""....
1 vote
3 answers
849 views

Programmatically read content of PDF media file

I have a custom template with a field of type "File" in which a content editor can upload a file from media library. I read the item as shown below and then i have a media item holding the ...
2 votes
1 answer
62 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: ...
2 votes
2 answers
908 views

How to disable analytics for media request analytics failed Exception: System.InvalidOperationException

Basically, I disabled xDB fully on web site, but I still see errors from Analytics ERROR Media request analytics failed Exception: System.InvalidOperationException Message: Tracker.Current is not ...
1 vote
4 answers
974 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 ...
1 vote
2 answers
112 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 ...
1 vote
1 answer
123 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> ...
2 votes
1 answer
603 views

Add a version when uploading media by overwriting

There are media approved for version 1. The template is VersionedTempate. Check Overwrite existing media items in Upload files (advanced) of the media library and upload. Then, the approved media is ...
0 votes
1 answer
388 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 ...
1 vote
1 answer
50 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 ...
0 votes
1 answer
108 views

Images don't reflect versioning in Rich Text Fields

The Sitecore version for this issue is 9.1.0 (rev. 001564). In content editor, if I add a versioned image with only 1 version created added to a rich text field on an item, I encounter issues when I ...
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 ...
7 votes
2 answers
471 views

"Search Tab" for "File" data type gives "The media item could not be found"

I have a structure in which we have a field defined as "File" data type. The requirement is to point this to a specific location within "Media Library". We have done this by specifying guid of the ...
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 ...
1 vote
2 answers
307 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 ...
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 ...
2 votes
1 answer
101 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 ...
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 ...
1 vote
1 answer
302 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 (...
4 votes
0 answers
3k views

SXA Video, Youtube doesn't show thumbnail on mobile?

I am using a Video component and I've created a couple examples, 1 video uses a YouTube source, the other uses a video in the media library. On mobile devices, the Youtube video doesn't show the ...
1 vote
1 answer
81 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-...
6 votes
1 answer
445 views

Transparent PNGs lose transparency when uploaded to media library (8.2)

I have some PNGs that I created in Photoshop which have transparent backgrounds. I've saved these as PNGs and when I view the images in my file stystem in my browser, the background is transparent as ...
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 ...
0 votes
3 answers
157 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 <...
3 votes
2 answers
308 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 ...
2 votes
1 answer
261 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 ...
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 ...
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 ...
5 votes
2 answers
1k views

Migrating a large media library

The customer has an existing Sitecore media library of roughly 18GB and wants to migrate this toa new sitecore site. However, because of the size, creating export packages or serializing items, ...
1 vote
2 answers
682 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 ...
0 votes
1 answer
703 views

Get the count and size of the subfolders of media folders and media items for each of the medial folders inside media library

I need to get the count of all the media items and folders inside any media folder in media library. Then export the data to csv I am planning to write a script using SPE. Please help me on the same ...
3 votes
2 answers
3k views

Sitecore not allowing WebP image to attached in an image field

Sitecore not allowing WebP image to attached in an image field. Can anyone suggest how to enable that feature so that we can attached webP format image
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 ...
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 ...

1
2 3 4 5
7