Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [media-library]

Anything related to media stored in the database or file system and created as items in the Media Library.

0
votes
1answer
16 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 changes,...
4
votes
1answer
41 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
29 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
58 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
54 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
60 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
23 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
74 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
60 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....
0
votes
1answer
60 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
53 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
93 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
69 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
30 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
56 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
32 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 ...
0
votes
0answers
40 views

ADFS with Sitecore 7.2 - Media Library No Access

ADFS has recently been enabled on our Sitecore website running on v7.2. All pages under sitecore/content/website/home will redirect to the ADFS login if the user does not have access to the page. ...
0
votes
1answer
61 views

CORS and Media Library Resources

I have a Lottie animation JSON object that I want to use in all my various JSS Angular apps hosted from different domains. Ideally, I'd have that animation file in the Media Library so it can be ...
1
vote
0answers
36 views

Media datasource using Sitecore SXA

How do I add media datasource (I want customers to able to select images from a particular folder) in Sitecore SXA using experience editor. Currently,I have added datasource in the template and works ...
2
votes
1answer
90 views

Template source location media folder

When I create a template entry for an image with source location like /sitecore/media library/Icons/Bezahlarten I've added some images to this folder, but when I whant to select an image for this I ...
1
vote
1answer
53 views

Sitecore Zip File Media Item Auto Downloads in Content Editor

I have a Sitecore media item in my media library that contains a zip file. In the content editor, when I navigate to this item, it starts the download of the zip media asset. Also, the usual zip icon ...
2
votes
2answers
84 views

Which media files does Sitecore 9.0 support?

I'm looking for a complete list of which media files Sitecore 9.0 supports. I can't find anything in Sitecore documentation. Only examples. Does anyone know?
0
votes
0answers
80 views

Set CDN Media.AlwaysIncludeServerUrl to FALSE when user is in Experience Editor mode

I use the following configuration for setting the CDN prefix for media files in my sitecore. But when viewing a page within the experience editor, none of the images can be reached by the CMS as the ...
0
votes
1answer
39 views

Media Library Items: can I specify a path that is relative from the “Media.FileFolder” setting?

When I use the file system to store items from the Media Library, I can see that each item stores either an absolute path or one that is relative from the webroot - not a path that is relative from ...
6
votes
1answer
115 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 ...
0
votes
1answer
99 views

Faking a MediaRequest and Media Items

I am currently trying to mock a media request and the media item I am requesting using FakeDb but for some reason my request is returning an empty MediaPath rather than the MediaPath I am expecting. ...
1
vote
1answer
51 views

Run MediaRequestHandler after Session_Start for authentication purposes

The media library images in our solution are protected by a custom override on the Sitecore MediaRequestHandler. This, in turn, checks against some Sitecore configuration item whether or not a user is ...
1
vote
0answers
44 views

Could not save posted file exception while uploading an image to media library that ends with (number).extension

When I upload an image to media library that ends with (number).extension Sitecore gives an error - log looks like below. No error if it ends with just () or (letter) or if (number) has a letter ...
5
votes
0answers
52 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 ...
4
votes
1answer
51 views

Content editors get access denied when attaching new language version to a media item

Our content editors get an error when they try to upload a new version of a document (or any other media item). Steps they take: Go to media library Upload a file (with advanced options) as versioned ...
1
vote
0answers
182 views

Custom parameters in media URL query string - Sitecore render method/pipeline

I am using Sitecore's render method to construct the query strings for image assets, but I have a small challenge parsing custom parameters into the rendered query string in the HTML. It seems that ...
2
votes
2answers
120 views

WebP format support with back word 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) ...
3
votes
1answer
59 views

What are the side effects of disabling Sitecore.Analytics.Media.MediaRequestEventHandler?

Our load tests have shown that the Sitecore.Analytics.Media.MediaRequestEventHandler reduces load time of media assets by a certain factor. If we were to disable this handler, what functionality ...
1
vote
1answer
54 views

Calculating dianoga's optimized image size?

Is there a way to programmatically get the Sitecore media files' size which is being optimized by Dianoga? We need to show the image size on the site. MediaItem.Size property is getting us the ...
1
vote
2answers
149 views

Images throwing 404 on staging but not live

Strange problem that's started happening recently. I have an instance of sitecore 8.0 setup (CD and CM separate servers). A user uploads an image. (stored as blobs in the db) It shows in experience ...
2
votes
2answers
247 views

How to restrict uploading of certain media files to Sitecore? [duplicate]

I am new to Sitecore and not sure how to restrict certain files from being uploaded to the Media Library. Let's say we do not want users to upload pdf files to Sitecore; how would you do that? Write ...
1
vote
0answers
57 views

Media items not appearing on website after deployment

We are facing an issue with media library during our deployment using Octopus. We have a publish site step in the deployment steps. The issue is media items are not showing in the website after the ...
4
votes
2answers
316 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 ...
2
votes
1answer
40 views

Sitecore FileUtil.ZipFiles creating zip files from Media Library items

Is it possible to create a zip file using Sitecore FileUtil.ZipFiles where the files to be added are from the Media Library items?
2
votes
1answer
130 views

Can't add image to the sellable item

We are using Sitecore 9 Update 2 + Sitecore Commerce 9 Update 2. Search field didn't return any result when I'm trying to add an image to the sellable item. As a key, I use image name. Before that, ...
3
votes
1answer
186 views

Will Sitecore support Jpeg 2000 , Jpeg XR, webp image format by default?

We have recommendation from our seo team to use image format like jpeg 2000, jpeg XR, webp but when we try to upload Jpeg 2000 image with extension .jp2, sitecore not taking as image format instead it ...
0
votes
2answers
196 views

Get Optimized Image in sitecore

I am using below setting in my application to reduce file size, but no luck. Sometimes it is giving bigger than the original size. Media.UseLegacyResizing -> value=true Media.InterpolationMode -> ...
1
vote
2answers
131 views

How to make a media library image searchable with few keywords rather just the item name?

Simply wondering how to tag an image with a few different keywords and find it that way later on within the media library. It seems like currently the search function of the media library only picks ...
1
vote
0answers
364 views

Download Sitecore Media file from UI

In our application we have an excel (xlsx/xls) file in medial library. We are trying to create a functionality to be able to download this excel using an html anchor or button. But when we click on ...
6
votes
1answer
119 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/...
2
votes
1answer
144 views

Updating Media Item Stream on Item:Saved Event

I had implemented a item:saved event handler that updates the MediaStream of a MediaItem. The code is roughly like this: public void OnItemSaved(object sender, EventArgs args) { ...
1
vote
1answer
96 views

Title label is missing in Image Properties - Sitecore Media Image

In my application when editing, image properties from a rich text editor the label is missing for "Title". (Ref. Image) Anybody having an idea of where to configure the label? Thanks in advance
3
votes
0answers
62 views

ShowFieldEditor on a media item detaching media

I have a simple script that we're running, where a content editor has bulk uploaded media and they want to go back through and provide attribution to the images (caption, alt text, photo credit) and ...
2
votes
0answers
59 views

Encrypt zip file while uploading to media library folder sitecore 8.2

i have followed the sitecore link and create my custom processor for (Sitecore.Pipelines.Upload.Save). i have faced issues while saving all media items. it gives error on file.SaveAs(filename); ...
7
votes
1answer
172 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 ...