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
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 ...
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
830 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 ...
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?
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?
4
votes
2answers
3k views

Media Items all return 404

On sitecore 8.2 inital version. I am doing the following: var myImageItem = (MediaItem) Sitecore.Context.Item.Fields["MyImageField"].Item; if (myImageItem != null) { viewModel.ImageAlt = ...
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 ...
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 ...
9
votes
2answers
600 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-...
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 ...
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 ...
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 ...
3
votes
1answer
60 views

How can I write my own Media Framework Extension?

I've noticed that Ooyala and Brightcove both have their own media connectors. I'm looking at using a different media provider, and am trying to figure out what the amount of effort would be to write ...
1
vote
1answer
539 views

PDF Downloads 0 Bytes

We have an issue where all images from the media library display fine. But PDFs stored in the media library download with 0 bytes. We've tracked this down to an issue somewhere in the Multisites ...
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 ...
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 ...

1 2 3 4 5
6