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.

1
vote
3answers
36 views

CD server - upload media files to web database [on hold]

How can user(external) upload some specific document e.g. media-file to CD server? Below point need to take care: Uploaded media files should not be overridden once publishing is done.So media files ...
2
votes
1answer
23 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 ...
0
votes
0answers
26 views

Sitecore media files setup into CDN [closed]

How can we setup media files into CDN? Is any patch config change is required for all media assets so that it can directly refer to CDN?
4
votes
1answer
36 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 '/...
0
votes
0answers
39 views

Changing Media Item Name [closed]

We have a requirement where we need to change the display name of Image against what is there in CMS for example if Image Name in CMS Is XXXXXXXXX_1535484620.jpg we want to give User friendly name ...
1
vote
1answer
23 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
30 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
37 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 ...
0
votes
0answers
28 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 ...
-1
votes
0answers
53 views

How to find out if item is saved in Sitecore programmatically

I am using Sitecore 9.1 and SXA 1.8. I downloaded the Sitecore forms extension from this link here to use file upload feature,this extension supposedly saves the file to sitecore automatically under ...
2
votes
1answer
58 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
24 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
48 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
47 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
35 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
110 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
67 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
32 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
38 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
47 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
35 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
142 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
84 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
43 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
44 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
112 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
140 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
52 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
191 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
30 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?
1
vote
1answer
115 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
141 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
114 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
96 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
236 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
102 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
120 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
89 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
57 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
56 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
161 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 ...
2
votes
0answers
66 views

How to set Media Cache Folder per site?

Context In my Sitecore (8.2.u7) instance I have 2 websites that share the same images. For this reason, I have setup Media.MediaLinkServerUrl e.g. cdn.mysite.com. This will also help me to integrate ...
5
votes
1answer
371 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 (...
3
votes
1answer
30 views

Uploading media from Image field is uploading as versioned

In sitecore 8.2 update 4, when we are uploading image from image field on item, media template is versioned type but when we are directly uploading image in media library then media template is ...
4
votes
2answers
743 views

Why does MediaManager.GetMediaUrl() return internal “/sitecore/shell/-/media” URL instead of “~/media” URL?

I'm programatically inserting some JPGs into the Media Library with the MediaCreator and then putting URLs to those images in a Rich Text field another item (page). When I call MediaManager....
0
votes
1answer
61 views

Sitecore media protection | outside sitecore application

Has anyone tried to protect media assets(with hash) outside sitecore application ? For example if a request comes for a sitecore media url, you need to create a separate application(say a webapi) , ...
1
vote
1answer
361 views

Error when selecting an image in Media library

I'm facing an issue where when I'm in the content editor clicking on some already uploaded images in the media library, then I get a popup with an error in it. And when I go to the event viewer to ...
0
votes
1answer
57 views

Convert files to PDF when uploading to media library

Is there any built-in mechanism to convert files to PDFs when uploading them to the media library, or does someone know of functionality that can accomplish same?
3
votes
1answer
127 views

Using SXA's “Gallery” component to view all images under “media library” automatically

I am Using SXA 1.6, my question is about the gallery component. I need the gallery component to be able to view all the images under "media library", and not be restricted to a component of type "...
0
votes
1answer
217 views

Sitecore Media File upload above 2GB throws Bad Request 400

we are on Sitecore 8.1 U3 , content editors generally upload large files to the media library using the File upload (advanced) option with Upload as files checked , these files are uploaded to a blob ...