Questions tagged [media-library]
Anything related to media stored in the database or file system and created as items in the Media Library.
269
questions
1
vote
2
answers
65
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 ...
1
vote
0
answers
46
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 ...
0
votes
2
answers
48
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 ...
0
votes
2
answers
54
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
1
answer
44
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 : ...
0
votes
0
answers
100
views
Sitecore Media images with path "/sitecore/shell/themes/standard/-/media" throwing 500 error
We can see 500 errors in the log files for the media files. Those files are having urls with /sitecore/shell/themes/standard/ in it.
Why the media Urls uploaded in Sitecore are getting created with ...
0
votes
0
answers
39
views
Sitecore media library does not render with sc_language
I uploaded Versioned image in Sitecore 10.0.1 media library.
Template used is - /sitecore/templates/System/Media/Versioned/Image
the image URL is also correctly rendered with sc_lang.
But when I ...
3
votes
1
answer
81
views
Sitecore 10.0.1 Unversioned Images not rendering across languages
I created an image in Media library using Sitecore Unversioned Media Template.
After addign image in say En, if I add a diffrent image for Spanish and come back and check English image, it shows the ...
0
votes
1
answer
31
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
1
answer
37
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
1
answer
75
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
1
answer
140
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 ...
0
votes
0
answers
48
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
1
answer
37
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 ...
0
votes
1
answer
34
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
0
answers
13
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....
0
votes
2
answers
99
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
30
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&w=192&hash=...
0
votes
2
answers
54
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
1
answer
159
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
0
answers
36
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
0
answers
60
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
0
answers
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
0
answers
205
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
1
answer
59
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/...
0
votes
0
answers
27
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
2
answers
460
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
1
answer
156
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
1
answer
49
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.
...
1
vote
2
answers
222
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 ...
1
vote
1
answer
241
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
2
answers
273
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
1
answer
56
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 ...
1
vote
1
answer
62
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 ...
2
votes
1
answer
97
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 &...
0
votes
0
answers
40
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\...
1
vote
2
answers
162
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
0
answers
75
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
1
answer
69
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
0
answers
188
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 ...
0
votes
0
answers
108
views
ERROR MediaRequestProtection: An invalid/missing hash value was encountered. The expected hash value: [duplicate]
For all uses of MediaManager I have code like:
string mediaItem = MediaManager.GetMediaUrl(sourceItem, mediaUrlOptions);
itemUrl = HashingUtils.ProtectAssetUrl(mediaItem);
I do have setting set:
...
2
votes
0
answers
37
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 ...
4
votes
1
answer
803
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 ...
0
votes
0
answers
116
views
Link external resource in sitecore 9.3 media library
We have a Sitecore 9.3 instance running a site. Our problem is that resources uploaded on the Media Library occupy too much disk space. We want to create a custom media library object that links to a ...
4
votes
0
answers
2k
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 ...
3
votes
1
answer
64
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....
1
vote
0
answers
76
views
Media.DefaultImageBackgroundColor
We have a custom import tool that programmatically imports content into a Sitecore 8.2 (rev. 170614) instance. In addition to the content, images are imported and attached to items as they are created....
1
vote
0
answers
103
views
Upload Media Item to Media Library Folder Through HTTP Request via ItemWebAPI
I am using the ItemWebAPI and attempting to create a media item in a subfolder of my Media Library. The documentation I am referencing for this is here: https://doc.sitecore.com/SdnArchive/upload/sdn5/...
1
vote
0
answers
555
views
In MediaManager, how to get image's full url with specifed site's domain included?
The reason why I want to change the domain of an image url is because I'm providing an API to a third party. And the regulation is all media url and internal link url, needs to replace the default ...
1
vote
0
answers
156
views
If I add a CSV file to the media library and visit that item in Sitecore, a file is downloaded automatically with the content of that media item
I want to upload a CSV file into our media library. In our Dev environment, this works as expected, the file uploads, shows up in the content tree, mime-type/extension is getting set appropriately, ...