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

Access denied security roles on media attach

I created a specific role inheriting the following sitecore roles : I gave it the access to my media library folder and inheritance but i still can't click on the attach button, while i can detach ...
17
votes
3answers
1k views

How do I manage Media library file extensions for SEO purposes?

How can I make the media library only serve up content for a files actual extension, and perform a 301 permanent redirect to the actual URL for any other extension. For SEO reasons. By default the ...
15
votes
4answers
7k views

How can I safely clear the media cache on a production sitecore CD instance?

I would like to manually clear the media cache on a production CD instance. Is there a way to clear the cache without causing disruption to the site?
14
votes
1answer
1k views

How to default the media browser to tree view

This is a really minor issue. But is it possible to have the "Select Media" browser default to the tree view as opposed to list view? I imagine there would be a config setting somewhere. I just feel ...
13
votes
4answers
20k views

How do you get the link for a media item?

I have an item in the media library in Sitecore and I want to place a link to that item on the site. How do I properly get the link for that media item?
13
votes
4answers
7k views

How to upload an image programmatically from URL

I have a task to upload an image into Sitecore's media library programmatically given the url to the image. How would I make this possible?
13
votes
1answer
834 views

Better editorial image manipulation tools in Sitecore CMS

I often have issues with sites that have multiple aspect-ratios in renderings which reference a single media item. For example: On a listing page a 1:1 aspect ratio (square) thumbnail is used to ...
12
votes
4answers
2k views

Optimizing Sitecore Media Items

We're currently trying to optimize our site so the end users get fast response times. One of the areas we are looking at moment is the media served from the Sitecore Media Library. What settings are ...
11
votes
4answers
10k views

MediaRequestProtection: An invalid/missing hash value was encountered

My Sitecore error logs contain messages such as: ERROR MediaRequestProtection: An invalid/missing hash value was encountered. The expected hash value... What would be causing this? This is only ...
10
votes
3answers
5k views

Improve image compression using Dianoga

We are exploring using Dianoga for dynamic image compression of assets in the media library. After installing the NuGet package and running some simple tests (comparing MediaCache image sizes with and ...
10
votes
3answers
3k views

Multiple images upload failing in Chrome and Firefox

I have found an odd behavior of an uploading images into media library. Depends on a browser, I can select multiple files at the time or not. For example: It doesn't work in Chrome and in Firefox: ...
10
votes
1answer
2k views

How do I enforce Alt tags on all images in Sitecore

Sitecore flags up empty Alt tags but it still lets users save them without setting the Alt tag. Is there an easy way to enforce that this is done for all new images? I know I could write a custom ...
9
votes
4answers
4k views

Forcing Sitecore to clear the cache for updated images

I am aware there are a number of Cache settings for media library items in Sitecore (as described here: Sitecore Implementation - HTML Cache Control Setting options). However the MediaResponse....
9
votes
2answers
602 views

Sitecore Media request Protection hashing with srcset attribute

I'm looking to implement hashing on images that we are resizing manually in the cshtml file. I've looked at a few articles on how to do this and ended up with the following <img class="callout-...
8
votes
1answer
5k views

Sitecore media ashx not resizing the image (version 7.2)

We have 3 (near identical) Sitecore sites on a development server and 2 out of the 3 fail to resize the images using the inbuilt Sitecore query string parameters. Example URL: /~/media/...
8
votes
4answers
2k views

Change default file name when downloading from Media Library

I store user uploaded files in Media Library, which can later be downloaded by admins. When saving files, I change the file names to guarantee uniqueness, but later when admins download them I want ...
8
votes
1answer
479 views

SPE How to add multiple items to package source

I'm writing a SPE script to package up all unused media library items under a specific folder (prior to deletion). I've found New-Package and New-ItemSource methods and know how to use them (to some ...
8
votes
2answers
3k views

How can I make responsive images editable?

I've been given this markup from the front-end developers and am working on figuring out how to implement it so that it is editable. <img src="img/logo@1x.png" srcset="img/logo@2x.png 2x"> I ...
8
votes
1answer
1k views

How to disable caching for specific items in the Media Library?

Is it possible to disable caching at an item level in the media library? We have specific PDF files that are updated every week, but it's simply not feasible to create a new item in the media library ...
8
votes
1answer
325 views

Ramifications of removing encodeNameReplacement for dot (.)

Sitecore has a number of encodeNameReplacements in config OOTB, I fully understand what they are and what they do since I have previously posted about it. The issue we have is we have a number of ...
7
votes
2answers
1k views

Convert disk based media to database

What's the best approach to migrate disk-based media into the database? We inherited a large enterprise site that's getting forklifted to Sitecore 8.2, and it currently uses file-based media. We want ...
7
votes
1answer
2k views

Bulk download PDF media in Sitecore Media Library

Is there any way if we can download bulk PDF (or any media) from Sitecore Media Library? Basically we have to change one logo in all PDFs in Media Library and re-upload all.
7
votes
1answer
164 views

How to handle 1-2 TB images in Sitecore media library

I have some tricky situation where I have 1-2 TB images and files. Each image can be 5-20 MB in size. I have to use them on Sitecore website. What is the best approach for uploading and handling such ...
6
votes
1answer
320 views

What is the purpose of shared tenant media folder in SXA?

SXA creates two media folders for new tenant: What is the purpose of shared folder?
6
votes
2answers
2k views

How to index PDF content in Sitecore running on Azure Web App?

I am trying to index media content (such as PDFs) using Azure and to my surprise/frustration, this feature isn't supported: https://kb.sitecore.net/articles/830385 Is there a workaround that allows ...
6
votes
1answer
744 views

Unable to see entire Sitecore content tree on selecting any media library item

Below is the Sitecore tree structure in my project. When I click on any item in the media library(for e.g. here Test1 item). I'm unable to see the entire content tree. Refer below image for the issue ...
6
votes
1answer
179 views

Upload Files (Advanced) randomly removing dashes

I'm working on a SPE script that uses the standard media library upload tool to take a file then uses the built in unzipper to unzip it. Upon unzipping the media items sometimes it removes dashes from ...
6
votes
2answers
582 views

Images for different breakpoints

I have read various implementation approaches to render images in desktop/mobile view without cropping/stretching it. Last time I had a chat with a fellow developer, they insisted on having a ...
6
votes
2answers
873 views

Why CleanUp doesn't work for the Blobs Table?

We have a Sitecore 8.1.1 with Sharepoint Connector 2.1. the connector imports 4000 documents from the Sharepoint (max 10 GB). The problem is that the Blob Tables last time were more than 80 Gb on ...
6
votes
1answer
379 views

Media file path based vulnerablity

During a vulnerability scan, Path-Based Vulnerability has been reported in the below-mentioned links, www.sample.com/web/abcdefgh/ijklmnop/-/document_library_display.old www.sample.com/web/abcdefgh/...
6
votes
1answer
580 views

How to generate Sitecore Media Handler Hash?

How can I generate Sitecore Media Handler Hash to append it to URL in JSS? I'm trying to resize the image on the fly but image URL query string like /blah/blah/myimagename.jpg?w=548&h=202 ...
6
votes
1answer
2k views

'Parameter is not valid' error when uploading images in media library

I'm getting a strange behaviour when uploading to the media library recently where Images upload but the pop-up doesn't close and an error is shown if I look in the network tab. The image actually ...
6
votes
1answer
307 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 ...
5
votes
1answer
600 views

SXA what is the purpose of the Media folder under a Site

What is the purpose of the Media folder under a site in SXA? Technically this seems to behave the same way as the regular media library, but I'm just not sure why you would use this, or if there are ...
5
votes
2answers
1k views

Run HTML site from Media Library

We are in process of migrating the Java Vigenette CMS on to sitecore platform. One of the thing that current content authors have been doing is below for short lived sites: Get the zipped HTML site ...
5
votes
2answers
3k views

ERROR Could not run the 'getMediaStream' pipeline for 'x' when loading images

I have an issue where our custom pipeline which crops images is not running correctly for some images. It was working fine and still seems to work correctly for the existing images but for new images ...
5
votes
1answer
493 views

Sitecore Publishing Service 1.8.0 does not publish blob data for custom field using type Attachment

I've created a new file template called Code which contains many of the same fields as the File template but does not inherit it. While publishing using the Sitecore Publishing Service the blob data ...
5
votes
2answers
888 views

Convert uploaded images to WebP codec on upload

I am working on some site performance issues with image sizes and quality on a home page. I can take care of the quality with javascript and post loading. But I thought about converting all images to ...
5
votes
1answer
530 views

Sitecore automatically removing underscores in media library upload

I have a user uploading this PDF file to the media library: Predictability_of_outcomes_in_discovery_disputes_at_cbca_improves_over_cbcas_first_ten_years_with_trend_toward_public.pdf. The filename ...
5
votes
2answers
190 views

Prevent Content Editor from automatically switching ribbons

On this one site, I frequently have to go in and deploy media items. In order not to publish things from other users that might not be ready, I publish the items individually. One of the most ...
5
votes
1answer
2k views

How to display PDF link in Sitecore page

I'm using Sitecore 9 and SXA 1.7. I have a few PDF files that I have uploaded into media library/files/myfolder, and an "instructions" template whose fields are title (type: single line text), Date (...
5
votes
2answers
556 views

WebP format support with backward compatibility (support in IE, Safari)

I am using Dianoga module (Thanks to Kam Figy) to optimize the images. At present looking to enable WebP format with backward compatibility (serving default image format for un-supported browsers) ...
5
votes
1answer
878 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, ...
5
votes
1answer
1k views

Large folder with images created on reindex: \App_Data\mediaIndexing

When reindexing on Sitecore 9.1, a folder with all the images is created ..\App_Data\mediaIndexing. My problem is that it gets very big in size, > 55GB of images in my case. Has anyone encountered ...
5
votes
1answer
223 views

Image hash paramater doubling up when inside a link

We have an image in Sitecore that needs to be rendered with a link wrapping it. When the HTML renders the hash parameter is being added twice so we're getting errors in the Sitecore log about the ...
5
votes
1answer
841 views

MediaLinkServerUrl per site

Is there a way to set Media.MediaLinkServerUrl value per sitecore site? basically I would like to use CDN for main website by specifying the cdn domain as MediaLinkServerUrl value but not for one of ...
5
votes
1answer
457 views

Unicorn does not always install media items correctly

On occasions, Unicorn does not pick up changes to media items in Sitecore correctly. e.g. after installing a package of UAT content into my local environment the other day, I noticed that some of the ...
5
votes
1answer
306 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 ...
5
votes
1answer
621 views

Can I remove the language parameter from Media Library images via config changes?

Using Sitecore 8.2.current we're seeing la=en added to a number of our media library (unversioned) image usages (<img src="_.jpg?la=en" />). In Sitecore version 7.something (7.2?) the ...
4
votes
2answers
1k views

Uploading zip file to Media Library and enabling "unpacking" results in an error

The issue When I use the Upload files (advanced) feature of the Media Library to upload a zip file with images in it (Sitecore 8.1 Update 3) and check the box to Unpack ZIP archives, uploading fails ...

1
2 3 4 5 6