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
1
vote
1answer
44 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
135 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
43 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
1answer
55 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
36 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 ...
1
vote
1answer
53 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
23 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
30 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
26 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
18 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
18 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
45 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&...
1
vote
0answers
49 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
48 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
42 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
87 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
40 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
81 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
64 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
92 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
29 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
104 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
102 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
100 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
72 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
101 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
94 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
63 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
77 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
59 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
45 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
85 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
38 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
118 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
89 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
133 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
119 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
57 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
123 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
139 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
75 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
61 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
62 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
59 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
232 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
146 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
74 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
57 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
213 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
323 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 ...