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
3
votes
0answers
66 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
0answers
19 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
0answers
39 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....
0
votes
0answers
24 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/...
0
votes
0answers
30 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 ...
0
votes
0answers
22 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, ...
0
votes
1answer
40 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 file. ...
0
votes
1answer
31 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
29 views

Sitecore how to get an ImageField full url, not a relative path?

It's an Web API project, to provide some data for third parties. var image = new MediaItem(imageField.MediaItem); string src = Sitecore.StringUtil.EnsurePrefix('/', Sitecore.Resources.Media....
0
votes
1answer
26 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 ...
1
vote
1answer
64 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
1answer
48 views

Sitecore Image imagescaling/resizing not working on CD enviornment

Recently our client asked us to use progressive image loading for our site. So we decided to use sitecore's image scaling/resizing to get low resolution image using sitecore image-scaling parameters, ...
1
vote
1answer
39 views

Exclude the hash from the query for certain media types e.g. PDF

Linking a document in rich RichText editor like this: <a href="/-/media/045D86A8E4BA4D5F9DFE3F703D6E75E9.ashx?">2017-02-14-presentation-.pdf</a> produces the following when rendered: ...
0
votes
0answers
35 views

Sitecore CORS error with images and few of the fonts in SXA theme

We are using Sitecore SXA 1.8 and using themes to load fonts and the images are loading from media library. CDN is enabled for the website and few of the pages are throwing CORS error on console for ...
0
votes
0answers
21 views

Sitecore 7.2 and Jpeg2000 image types [duplicate]

Is it possible to configure the Sitecore media library to recognize jpeg2000 files such as .jp2? I've tried using this solution. However, when uploading jp2 types to the media library it throws an ...
2
votes
2answers
163 views

Sitecore Media Request Protection errors with CDN enabled

We have CDN enabled on our website and we are seeing lot of errors w.r.t Media request protection like below: ERROR MediaRequestProtection: An invalid/missing hash value was encountered. The expected ...
0
votes
1answer
46 views

After publishing: “The image cannot be displayed because it contains an error”

The image item on MASTER DB looks ok and no sign of errors (image below): After publish (smart publish / republish) the image shows error on WEB DB: Error: The image “https://myhost/sitecore/shell/...
1
vote
1answer
45 views

Uploading SVGs does not set media item size

Using Sitecore 8.2 Update 7 - When I upload SVGs to the media library, no size is being set. Sitecore flags this as an error (With the red line to the left). The images render fine on the site. So, ...
0
votes
0answers
42 views

How to stop download Sitecore media items (png)?

When I click on Sitecore items that have an image field with png image uploaded in it, pop-up appears to download the image. How can I stop the pop-up from appearing? even though I put the force ...
-1
votes
1answer
52 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 ...
0
votes
0answers
27 views

PDF font and Header not showing on load

I have one PDF file(Content in chinese) stored in sitecore media library but when i try to view it from website(in chrome and microsoft edge) then at first the header logo and some characters of the ...
1
vote
1answer
46 views

Image hash in URL causes image to have black background in normal mode

I have a case where a PNG image appears differently in edit and preview mode versus normal mode. The normal mode image has black bars at the top and bottom of the image. The edit / preview image does ...
1
vote
0answers
49 views

Media from media library getting detached

Sitecore version: 9.0.2 Scaled What is happening: No image or media file has been changed. But the images from a folder in the media library stopped getting rendered on the site. Upon investigation,...
0
votes
0answers
24 views

Restrict upload size [duplicate]

I am using Sitecore 8.2 and looking around I have been unable to find a solution for restricting file size by extension and Sitecore role. E.g. A content editor with the role of "Home" should not be ...
1
vote
2answers
117 views

MediaCreator.CreateFromStream creates an item with the template “File”

I'm using Sitecore.Resources.Media.MediaCreatorOptions and Sitecore.Resources.Media.MediaCreator to programmatically create media items. I've set the MediaCreatorOptions.FileBased property to false ...
1
vote
2answers
139 views

Packaging and installing media items not working - items are created but have no attached file

My content authors uploaded a ton of media items in our UAT environment. I'm trying to package these and install in prod, but the installation isn't working. I'm created a regular Sitecore package ...
1
vote
0answers
33 views

Can Digizuite for Sitecore be configured to be closed for public access

Is it possible to configure Digizuite for Sitecore (DFS) to be closed to the public and only accessible by a Sitecore CD server (and any other necessary clients)? We would like to force all assets (...
2
votes
0answers
96 views

Images are broken on Safari Browser [closed]

I'm using Sitecore 9.1, JSS and ReactJS. Some of the images are not showing on Safari but working fine on Chrome. Here's a sample url: /-/media/Intelligence-Bank/Folder/Folder/Logo/Logo.png?h=422&...
1
vote
1answer
69 views

Facing the challenge while adding the custom styling related to font in the SXA Site

I am building a SXA site and I have created the custom theme by following the Link I have created my custom stylesheet and added in the theme. But, it is not getting reflected when I preview the ...
3
votes
2answers
165 views

“Not Found” error when uploading media files [closed]

I have a photo item with a file field that I can upload to a specific folder in my media library just fine on our development server, but when I try to do this on our staging server, It allows me to ...
2
votes
1answer
122 views

localized filenames for downloads like pfd files

I am using the displayname for my files to localize the filename, I've written a pipeline that it shows the displayname in the html (that works), but when I try to download the files like pdf's then, ...
1
vote
0answers
19 views

Does this error MediaRequestProtection: An invalid/missing hash value was encountered show only in logs or a Yellow Page? [duplicate]

We are seeing this logs in our Sitecore application, we already saw some of the fixes and we are just wandering if this error makes the page in exception(yellow) page? or this has nothing to do in the ...
0
votes
0answers
79 views

Media cache issue after adding version to the query string as part of the cache bust mechanism on CDN

Background: Recently, we implemented CDN and as part of that version is added to the query string to bust the cache. After that, we started noticing an issue where a web page is loading a random image ...
0
votes
0answers
97 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 ...
5
votes
1answer
217 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 ...
0
votes
1answer
57 views

Fixing media items with wrong extension

There have been some suspect manipulations in our media library (for example, detaching and reattaching of images), such that we now have images in our library which are linked to the wrong template. ...
4
votes
2answers
161 views

Rendering images through TreelistEx

Environment: Sitecore 9.0.2 + Glassmapper I am trying to create a component like this. So in the template, for the images (stored in Sitecore Media Library), I have taken a field of type TreeListEx. ...
2
votes
1answer
46 views

Date Uploaded filter doesn't work in Media Library

When trying to select a Media item for a field the Date Uploaded filter returns no results. This is in Sitecore 9.1.1. Here are the steps to reproduce: Navigate to a content item with an Image field ...
1
vote
1answer
251 views

Image src attribute stripped from Responsive Image

I have an issue where the src attribute suddenly is missing from img tags when using the built in Responsive Image in SXA 1.9 on Sitecore 9.2. However the alt, srcset and sizes attribute works as ...
3
votes
1answer
510 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 ...
1
vote
1answer
75 views

“ForceDownload” downloads images in CM even when set to false [closed]

I'm using Sitecore 9.1.1 and SXA 1.8.1. I needed to make .png and .txt files downloadable in my site, so I followed the answer here, and added a config patch where forceDownload is set to true for ...
0
votes
2answers
60 views

Trigger an action when attaching file to Media Library

I'm using sitecore 9.1.1. I have a scenario in which i want to trigger an action when a file is uploaded to the media library and trigger another action when i re attach a file to the previously ...
0
votes
1answer
52 views

Where can I see in C# that a media item is versionable?

I need to know if a uploaded media item is versionable uploaded or not? But I can't find a property on the Imagefield or MediaItem itself where I can see if the media item was uploaded versionable. ...
0
votes
0answers
25 views

“Drag & Drop” Media not working in IE11

We would like to have "Drag & Drop" functionality in Sitecore v8.1 I can see option of "Drag & Drop" in the media library but when dialog opens it gives below message "Please wait while Drag &...
1
vote
3answers
231 views

How to move media items to new folder without impacting references programmatically?

We have lot of items in the one of the image folder so we are planning to move these images in multiple folder. We would like to do this programmatically however we are not sure if it will impact the ...
1
vote
1answer
227 views

Sitecore image optimizer (to get responsive images)

What is the proper way to do responsive images in Sitecore? At the moment, we are using two images fields: one for desktop and another for mobile. Is that a good way? As a separate (but related) ...
0
votes
2answers
217 views

Update Missing Title, Alt Text,Description for Images

We are using Sitecore 8.2 Update 2 and it has a lot of images which has missing Title, ALt text and Description for Images. We performed below action Wrote a Pipeline which inherits from Render field ...
2
votes
1answer
79 views

Media path not updated after renaming the media item in Sitecore 7

We are using Sitecore 7 SP1. I have renamed a media folder, both its item & display name. The item with the image field still shows the media path with the old name, but somehow the image is ...
2
votes
1answer
362 views

How can I override the serving of Media Files? (Implementing authentication for media items)

I'm using Sitecore 9.0.2 What I want I'm having an issue serving media files. I would like to check if an user is authenticated before it is served. What I tried I'm currently doing this for all ...
2
votes
2answers
323 views

Could not create instance of type (My implementation of FilterUrlExtensions) No matching constructor was found

I'm using Sitecore 9.0.2. I am implementing Sitecore.Pipelines.PreprocessRequest.FilterUrlExtensions, that in Sitecore 9.0.2 has a constructor with the following signature: public ...

1
2 3 4 5