We’re rewarding the question askers & reputations are being recalculated! Read more.

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
2answers
107 views

“Not Found” error when uploading media files [on hold]

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
105 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, ...
0
votes
0answers
13 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
41 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
38 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
64 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
61 views

Image not showing from Media Library

When I am rendering an image in view using glass mapper or Sitecore Html helper class I am getting below dummy image But when you inspect the element there you open in a new tab then the image is ...
0
votes
1answer
39 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. ...
1
vote
1answer
61 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
27 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 ...
0
votes
1answer
56 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 ...
0
votes
1answer
81 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
49 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
34 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
46 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
18 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
78 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
118 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
89 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 ...
0
votes
0answers
46 views

SXA - Not getting Image

Using Sitecore 9.2 and SxA 1.9, I have an Image field which is retrieved from Sitecore in my Repository. But when the field is rendered, it's replaced with the following html, rather than my image: &...
2
votes
1answer
52 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
166 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
1answer
67 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 ...
0
votes
2answers
128 views

How to remove media item from both blobs table and items table at the same time from sitecore master db?

I have added some images in sitecore media library. Those images are getting added in both dbo.Blobs and dbo.Items tables. I wanted to delete the image data from both the tables.But I don't know how ...
0
votes
2answers
51 views

Force download .txt files from UI

I'm using Sitecore 9.1.1 and SXA 1.8.1. I have a case in which i need to make some files downloadable for the user when he clicks on it. I was able to make the files with "pdf and docx" extensions ...
2
votes
1answer
177 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....
1
vote
1answer
27 views

Can I include image URL options with Synthesis field rendering helpers?

I'm on Sitecore 8.2 with Synthesis 8.2.6. I'm currently using the provided helpers Field.RenderedValue and Field.Url. I'd like to request the images with specific size parameters depending on the ...
-1
votes
1answer
37 views

Sitecore not allowing WebP image to attached in an image field

Sitecore not allowing WebP image to attached in an image field. Can anyone suggest how to enable that feature so that we can attached webP format image
1
vote
1answer
34 views

Programmatically uploaded media files are not showing in CD Server

Sitecore Version : 9.0.2 Environment: Azure PaaS CD If upload any media file manually in Content editor, it uploads the media and the filepath field is empty. In program, I need to upload the media ...
0
votes
0answers
20 views

Admin users not able to see non English assets

We are using Sitecore 9.1, SXA 1.7.1 and it is multi Site architecture (English and Italian Sites).As a Admin user when i am setting up an content for Italian site, by default the assets are mapped ...
0
votes
0answers
19 views

Transfer Meta data info from “eng” region to another region in Media Library

For Korean region, we are importing asset from a DAM (Digital Asset Management) source to Sitecore Media Library but by default, it is mapped to English region, can anyone assist how to transfer the ...
0
votes
1answer
52 views

How do you avoid showing the media library path to images and documents when rendering the url?

we are using Sitecore 9.0.2, sitecore sxa 1.7.1 In Content Delivery site, we are showing full image path like: /-/media/Project/MyTest/MyTenant/mytestsite/TestImage.jpg?h=168&la=en&w=300&...
2
votes
0answers
64 views

Sitecore invalid hash value seems to be failing. there are multiple hash queries in the query string

ERROR MediaRequestProtection: An invalid/missing hash value was encountered. The expected hash value: **3B2EEFF3A17529C1E25F9A4C6136A7EC**. Media URL: /-/media/images/features/navigation/support/...
0
votes
1answer
50 views

Is it possible to link all contents of a media folder on a page?

New to working with sitecore, and not really sure if what I'm looking into trying to do is even possible. I certainly can't figure it out myself. In short, I want a page which will list all the ...
-1
votes
1answer
47 views

How to calculate time for Sitecore media library activities?

Client is complaining regarding slowness of the Sitecore media library, activities like opening media folder, uploading image, saving image, using media in Experience editor. Before making any ...
4
votes
1answer
154 views

MediaManager throwing null error

I am facing an issue while fetching the media item URL. This is my code snippet: @{ Sitecore.Data.Fields.ImageField imageItem = (Sitecore.Data.Fields.ImageField)Sitecore.Context.Item.Fields["...
0
votes
0answers
43 views

Media Folders are not visible in Experience Editor while using Content Builder/Content Editor profile in French language

I am working with SXA in Sitecore 9.0.2. While trying to edit a French language version item in Experience Editor mode with Content Builder/Content Editor user profile, media content (also subfolders) ...
0
votes
1answer
121 views

How to get the specific version of media item in Sitecore 9.1?

How to get the specific version of media item in Sitecore 9.1? I tried the following url http://hostname/~/media/mediaitem.aspx?vs=1. But it is not working, still getting the latest version of ...
-1
votes
1answer
74 views

Get all the media items on the current page [closed]

I want to get all the Sitecore media items on the current page. This could be an image, video, pdf ,mp3 or docx Has anyone done something similar to this? What i am currently doing is Getting all ...
2
votes
1answer
124 views

Media Attach command ignores UploadAsFiles

We have <setting name="Media.UploadAsFiles" value="true">. In most scenarios it's working as expected; media items' data bits are stored as files on the server rather than in the Sitecore DB. ...
0
votes
1answer
39 views

Customer Uploaded Image Management Strategy in Sitecore [closed]

Our website is currently having a Custom Reviews functionality where customers can review the product and upload images (just like Amazon reviews) We are currently saving the images in a separate SQL ...
1
vote
1answer
129 views

Media item rename doesn't publish

When we rename a media item in Content Editor, and then publish, the published item in Web DB still has the old name. I expect that the published item's name should change to the new name, so I assume ...
0
votes
1answer
142 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....
1
vote
1answer
153 views

Upload as a File Check box not showing

I am using Sitecore 9.1 and I want to configure the Media Item save behavior. I want to save all Media Items in File Systems instead of Database. As of now i want to store in the same server. I have ...
0
votes
0answers
80 views

Default ZIP icon is not loading for the Sitecore Media Item

In Sitecore 9 when we are uploading the zip file in Sitecore Media library. Icon is loading from the template "/sitecore/templates/System/Media/Unversioned/Zip" instead of taking from the temp folder. ...
1
vote
1answer
118 views

Render image with display name by default

I am using HtmlString to render my images by default so I can edit the image in the expierence editor. I am using the fieldrenderer model.AllgemeinSaxoprintLogo = new HtmlString(FieldRenderer....
1
vote
3answers
126 views

CD server - upload media files to web database

How can user(external) upload some specific document(media-file ex- PDF file) to CD server? Below point need to take care: Uploaded media files should not be overridden once publishing is done.So ...
3
votes
1answer
113 views

Create media item and specify item id

I have a scenario where I need site visitors to be able to upload media items via CD server. My plan is to upload to web database first and use EventQueues to then have the CM server fetch the ...
4
votes
1answer
100 views

Image Editor actions throws “Parameter not valid.”

Image editor doesn't function after deploying to the azure environments. This seems to be the case for our Dev, Test and Acceptance environments. When using Crop or Rotate or Flip: Server Error in '/...
1
vote
1answer
103 views

Right Click on media library folder does not offer Upload File option

I have a user that has create permissions for certain folders in the media library, but when I log in as that user and right-click on the folder, all I see is the create folder option. If I click on ...