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
0
votes
0answers
3 views

Sitecore - Image target="_blank" does not work

I recently posted the question about this topic, but I still can't figure out how to solve this issue. Basically as the title says the target="_blank" does not properly work. It shows that ...
0
votes
0answers
37 views

Is it possible to have target "_blank" on image link?

Is it possible to send user to another page, for example in this case www.stackoverflow.com, when user clicks on the image? Basically right now, when someone clicks on the image itself it does not ...
0
votes
1answer
484 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
1answer
356 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
1answer
17 views

Supress MediaRequestProtection errors at site level

I have a multisite setup in sitecore 9.1 and getting the below error on ERROR MediaRequestProtection: An invalid/missing hash value was encountered. The expected hash value I know the reason for ...
0
votes
1answer
27 views

Where does SXA store css and js files on CM server

We can see css and js files in content tree under /sitecore/media library/Themes/ and if we view source code of a web page we can also see the links. However I am not able to find those files in ...
2
votes
0answers
35 views

How to replace/register 'ResizeImageStream' method of class 'Sitecore.Resources.Media.ImageEffectsResize' from Sitecore.kernel dll

I’ve extended SqlServerDataProvider to use the azure blob storage account for storing the media library assests.Everything works fine but Sitecore.Resources.Media.ThumbnailProcessor throws an error in ...
0
votes
1answer
56 views

Opening HTML microsite from Sitecore Media Library v9.1.1

Looking for settings to open microsite uploaded to the media library in the browser. In the past, we would take an Adobe Captivate HTML export load it into a folder in the media library, and run the ....
0
votes
1answer
27 views

How to upload single file into theme

I wanted to change one js file from theme so I downloaded it. Now when I made those changes I am not able to see any option to upload it. Can someone please guide me on this? Update As Raman ...
0
votes
1answer
31 views

Getting Dianoga to work with the jssmedia urls

I've been at it a couple of days now and gotten Dianoga working, converting all of our "old media" images to shiny new webp format images. It works great for the standard ~/media url ...
0
votes
1answer
32 views

Sitecore 8.1 - 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/...
0
votes
1answer
43 views

Dianoga v5 with WebP, CDN and Sitecore HTML Cache

As part of a Sitecore upgrade to v10 we also upgraded to Dianoga V5.4.1. This site uses output/HTML cache extensively. We need to support browsers with and without webp support. The WebP CDN config ...
1
vote
1answer
322 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
0answers
31 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 ...
0
votes
1answer
604 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 ...
0
votes
1answer
52 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
1answer
26 views

Can we bind image component source through programming?

We would like to bind image component src thorough programming and would like to get Hash value as well. Need this output : <img src="/-/XXXXXX?h=192&amp;w=192&amp;hash=...
2
votes
1answer
198 views

localized filenames for downloads like pfd files

I am using the display name for my files to localize the filename, I've written a pipeline that shows the display name in the HTML (that works), but when I try to download the files like pdf's then, ...
0
votes
0answers
12 views

BlobProviderException - Can't publish media items from Master to Web database [duplicate]

When I am publishing many media items from the master to the web database, it crashes at some point in the process with the following exception: Job started: Publish to 'web'|#Exception: System....
1
vote
2answers
127 views

Media library item (pdf) reachable after unpublish/not publishable

In Sitecore 9.1.1 I have some PDF documents in the media library that i've "unpublished" (unchecked the publishable publish setting) Then smart-publish parent folder, subitems and all ...
0
votes
2answers
40 views

Possible to retrieve PDFs deleted from the media library or retain their URL for new version?

I have deleted some PDFs from the Sitecore media library by replacing them with new PDFs which were already added to the library. As a result, the media URL is now changed. The owner now says they ...
1
vote
1answer
92 views

How to add Custom CSS File and why it is not rendering to page

I have installed Sitecore 10 on my laptop recently and I am facing the following issues. Issue 1: I have created a site and I am trying to add a "custom css file" but I am not able to upload ...
1
vote
0answers
30 views

Rendering SVG as XML using Glass Mapper

I was curious if anyone has a good solution for rendering SVGs using Glass mapper so that the result is XML embedded into the HTML instead of an tag. I know that I can use Editable() with a ...
1
vote
0answers
53 views

Undefined Javascript Error on Media Upload

In Sitecore 8.2, we have an item template featuring an image field. The preferred workflow for creating an instance of this template is the use of the Browse trigger on the image field and the Upload ...
0
votes
0answers
40 views

Media Upload Not Triggering for Crowded Media Path

In Sitecore 8.2, we have an item template featuring an image field. The preferred workflow for creating an instance of this template is the use the Browse trigger on the image field and the Upload ...
0
votes
0answers
155 views

Images not showing on preview mode in sitecore 9.1.1

I have a website on sitecore version 9.1.1 and sxa 1.8 Several components and pages contain image fields, when I open the page in edit mode everything looks fine but when I open the page in preview ...
0
votes
1answer
46 views

Add query string to all Media item in Sitecore SXA 9.3

Is there any way by which I can add a query string in each media item requested in SXA include CSS, js, images, fonts, etc. Current URL - http://us.dev.local/-/media/base-themes/core-libraries/...
-2
votes
1answer
47 views

Sitecore Media Upload wizard throws "Maximum amount of data upload is NaN undefined" in sitecore 8.1

When I try to upload the image in Sitecore media uploader, I am getting the error "Maximum amount of data upload is NaN undefined". I got a resolution to change the maxRequestLength property value to ...
0
votes
0answers
25 views

Custom Image field button stop working after Chrome update

I have custom image field button in order to be able to choose image from outside media storage. Everything worked well until recently Chrome update. My .aspx file for Field popup. <body> &...
0
votes
0answers
47 views

Headless JSS with Sitecore Image URLs

So just need clarification on this image issue I am running into, so my site is www.site.com and some of my images that are located in my media library are coming to my site is showing up as www....
3
votes
1answer
58 views

How to disable the animation of SXA image gallery in mobile

I have added the Sitecore sxa image gallery. My requirement is to hide the pop up which comes in the mobile view on double-tap of image. I have tried with event.preventdefault ,.stop(),event....
0
votes
2answers
282 views

How to find unused images /files in the media library and clean them up?

We have been using Sitecore as CMS for quite some time. We would like to clean up the images and files which are not linked with any items and archive them. Is there any approach you have used for ...
1
vote
1answer
121 views

How can I automate the upload Media Library files available in folder under App_Data?

I build my frontend artifacts (theme files, including pre-optimized-min versions of my CSS and JavaScript) using SXA Umbrella, and in my DevOps release pipeline I make them available in the folder ...
1
vote
2answers
169 views

Can't access Media Library folder items from within Content Editor despite folder containing items

When attempting to set an image for a field in Content Editor, the media library shows no items to pick from: However there are in fact items in this location: I am also able to access these items ...
2
votes
2answers
825 views

Can I force the old Upload File interface instead of the new Batch Upload when uploading multiple media items?

After upgrading to Sitecore 8.2.something (currently Update-5), some users began to notice that the functionality to upload multiple media items at once changed. Before the functionality was such ...
0
votes
0answers
22 views

Media Library more than 2000 files [duplicate]

We are planning to migrate the website from WordPress to Sitecore and we see there around 2000 files/4 GB size which includes images, pdfs, Word, excel documents. Currently Budget and timeline is ...
1
vote
1answer
37 views

Is there a way to set my image URLs to my node server url instead of my CD instance

So I havent been able to track down a article of how you change the name of my images coming out of my media library. The mynewsite is the site running my node server calling my prod-cd content. ...
2
votes
1answer
93 views

How to hide specific photos to be viewed in browse image

I'm trying to hide specific photos from browse image dialog. For example "Assets" is my source folder, I want to get all first level photos only which is "Image1" and to hide &...
1
vote
1answer
190 views

ON PUBLISH , Pdf media item is not clearing the cache from CD server in 9.3

ON PUBLISH, Pdf media item is not clearing the cache from CD server in 9.3 and still shows the old pdf. The HTML Cache clears as expected in the CD but not the media item. Eventqueue folder in the CD ...
1
vote
2answers
173 views

General Link (Insert media item) add custom property when click from Experience Editor

We would like to add custom property when we click on General link from Experience Editor. Would like to add custom property below "Alternate Text" and append custom property values in URL.
0
votes
1answer
52 views

How to Fake a Media Library Item and return an image from external provider instead

The scenario is the following: For a single component we're getting the html content from an external provider. Including images. For each image we have to call a separate endpoint of the external ...
0
votes
0answers
800 views

Sitecore images served as ashx when Media.RequestionExtension 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 Media.RequestionExtension setting is "". They are ...
1
vote
1answer
59 views

Solve copy and paste image path

I created a custom image field, so far its working fine. but when I take an image path and add it manually to the field without clicking browse. It disappears which is not the normal behavior in OOTB ...
0
votes
0answers
23 views

Uploading SVG images into AWS connection within Sitecore's Media Library

I am working with a client where we use AWS (Amazon Web Services) to manage uploaded images in Sitecore 9.0.2, rather than loading them directly into the media library. When I tried to upload the SVG ...
0
votes
0answers
33 views

Sitecore ProcessMediaRequest is giving 404 for restricted media

I recently had a requirement to restrict secure media items to download so that only certain logged in users could download them. So to achieve that I have remove read access from the extranet\...
2
votes
1answer
1k views

Assign media item to sitecore item using powershell script

I want to add an image to an item using powershell script and here is my code. I don't know what i'm missing.. $item.Editing.BeginEdit() [Sitecore.Data.Fields.ImageField]$fieldValueLink = $Item....
6
votes
1answer
305 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 ...
0
votes
0answers
65 views

Packaging and installing media items not working - items are created but have no attached file, media is NOT stored in file system

I've created a package of media items on my prod environment and installed it on my local. The media files are NOT stored in the file system But when I install the package, the items are created but ...
0
votes
0answers
134 views

Sitecore Media Item getting downloaded on click of media item

Media item are getting stored on azure, for this I have overridden Media library classes. Now what happen when I am selecting any media in Media Library to see, It gets automatically downloaded. It ...
4
votes
1answer
702 views

Sitecore media library - unable to load large files ( > 8MB) via Azure Front Door

We've run into an issue in Sitecore 9.3 where it's not serving media items properly via Azure FrontDoor with caching enabled. (Front Door works exceptionally well for 99.95% of the website). But a ...

1
2 3 4 5 6