Questions tagged [media]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
36 views

Moving Media files to S3 bucket

I want AWS CloudFront to be implemented in production for a Magento 2 site. I would like to know what changes are required to change the path of images and audio/ video files, to set up on S3 bucket. ...
1
vote
0answers
39 views

{{media url=“…”}} doesn't work on product attributes

After magento update to version 2.3.2 i noticed that {{media url="..."}} is not working on product attributes like 'description' attribute. In backend the url is resolved correctly and i can see the ...
0
votes
1answer
12 views

Magento 2 - Possible Image Corruption

I have a pair of clients who are both Magento 1 to Magento 2 conversions. After going to Magento 2 and dropping their media in place, if they're running 2.2.7 or 2.2.8, the images look like they've ...
0
votes
1answer
17 views

Magento 2.2.8 - Error Creating Product Through API with Images

I have a Java desktop app that has the ability to link directly with Magento 2. I migrated a client from Magento 1.7.0.2 to Magento 2.1 then upgraded them from that to 2.2.8. Afterwards, I performed a ...
1
vote
1answer
34 views

Wrong media URL in WYSIWYG editor when adding images in various Magento store views

I will try to explain a strange behavior (maybe bug) when using WYSIWYG editor in Magento 1.9. Magento setup One website with three store views. Each store view is on different domains. For this ...
0
votes
0answers
18 views

When creating products with POST, images Roles are not enabled (base/small/thumb/swatch), even after a following PUT

When I add a product via the Magento 2 API and then add an image, the image is added and shows up under the "Images and Videos" tab, associated with the correct product. However, none of the Image ...
0
votes
1answer
37 views

Magento 2.3.1 media urls in custom attribute of text editor type displaying as text

I've created a product attribute to display content in the product tabs which is specifically for technical drawings. The attribute is set as text editor type. When I add an image using the "insert ...
0
votes
1answer
22 views

How to change “input file” storage location in customer account edit form

I have added a customer attribute called "My File". It gets added in customer account edit form. By default, the selected file(My File) is saved under "pub/media/customer" directory. In my case, I ...
0
votes
0answers
26 views

Can't upload image to magento 1.9.4.1

My version magento 1.9.4.1 When i clicked on buttons, nothing happens. Because of this, I can not add a picture to the product I looked at this question and saw that I do not have files skin/...
0
votes
0answers
9 views

Prevent Media Attribute from defaulting on image

I'm using Magento 2.2.8. We've created a module for displaying a sizing guide which works wonderfully. My issue though is the sizing guide works by tagging an image on the product with a custom ...
0
votes
0answers
17 views

How can we add Magento Media gallery support inside Image and Videos tabs in magento 2.2

Basically I want to add the Default Magento Media gallery Insert Image functionality https://www.screencast.com/t/A0yH5sVgUlUv inside images and video tab. By default magento does not have this ...
0
votes
1answer
85 views

Create symlink of magento 1 “media” folder

I need to create a symlink of my magento1 "media" folder on another disk of my server because I need to make space on current disk. In which way can I do this?
0
votes
0answers
35 views

Magento 2.1 File system code Backup Not Working

database and media file backup is working with my store. But when I try to get system backup following error occurs. Both in terminal and Admin panel. I have run the following command to get the code ...
2
votes
0answers
96 views

Magento 2.3.0 unable to insert images in tinymce content

I notice that I couldn't insert images when adding products in tinymce content part. When I click on Insert Image button, I saw error as image below I granted access to /media directory 777. I ...
0
votes
0answers
37 views

Show media image that is NOT base, small_image or thumb ? on product view page

Steps to reproduce : 1) go to admin, create a product and add two images and set roles as a) base image b) small image or thumbnail 2) now go to product page in frontend , reload the url. you can ...
0
votes
0answers
19 views

Using product api to upload video but deletes the product custom image roles

I am using api call = rest/all/V1/products/sku/media to upload video to a product but it deletes custom image roles. Can anyone please help me out.Thanks in advance.
0
votes
0answers
55 views

How to add a youtube video into Magento 2 media gallery through a CSV file and import method?

Can't find an example of which column needs to be added and populated. This is available through a CSV file in Magento 2.3?
0
votes
1answer
19 views

looking for 'Search & Download' extension for Magento 2

Is there any extension available for Magento 2 that offers the ability to search for a SKU/ProductName and return result download links for related files ( such as driver firmware, user manual,etc)... ...
2
votes
0answers
34 views

Transfer to other server

I want to transfer to other server my store (new server have plesk panel ). I wrote command in cli bin/magento setup:backup --code --media --db from old server with this method can i take those ...
1
vote
0answers
73 views

Can you rename product image filename via Rest Api?

I'm trying to rename product image via rest API. So far I got the error Cannot save product on PUT /V1/products/{sku}/media/{entryId} Here is roughly the last thing i tried { "entry": { "...
1
vote
0answers
26 views

WYSWYG Using media browser on frontend

Is possibile to use media browser of admin on frontend? I am meaning the pop up window when clicking browse server of wyswyg, the pop up is this image I am using the webkul marketplace extension, it'...
0
votes
1answer
297 views

Upload Videos in media storage

I want to be able to upload videos in the media storage and embed them in Blocks. Is and how is this possible? I could not find any informations about this.
1
vote
0answers
33 views

Change label and position of media in store views via API

I encountered a problem today while saving images via the API: catalogProductAttributeMediaGalleryManagementV1. The label and position of the image for all the store views except the default one are ...
1
vote
1answer
509 views

%fieldname is a required field for entry in post media gallery

I'm pretty new to Magento and I was trying to add a media to a existing product. From code I am able to do that as the following: $entry = ['entry' => [ 'media_type' => ---, ...
3
votes
0answers
322 views

Magento2, add custom module files to pub/media directory [closed]

If we include files in our Magento2 custom module, that should be added to the pub/media directory...how do we go about ensuring they are added? Ive created the required media dir sub-directory via ...
3
votes
2answers
46 views

How do you get all the media info for the products?

I'm pretty new to magento so i'm not sure how to make the call to get all the media info for each product. I currently have this call that gets all the products and the data on the product model, but ...
2
votes
1answer
470 views

How to Change Magento Media Path?

Is it possible to change the image source path in the media folder: From: www.example.com/media/catalog/category/apple-iphonex.jpg To: www.example.com/apple/media/apple-iphonex.jpg
2
votes
3answers
4k views

Magento 2.2.4 : Image not displaying in product page

In a custom theme, my image isn't displaying on my product page. However, if I look in my source code, the image is indeed loaded. But the image is displayed on the category list item. Maybe it's ...
0
votes
2answers
192 views

Calling setMediaGalleryEntries - get Fatal error on “Call to a member function getMediaType()”

What I want to do: Set image to the product. The image comes from the base64 string. How I do: public function __construct ( ProductInterfaceFactory $productInterfaceFactory, ...
0
votes
2answers
3k views

How to create directory and text file and write content in file in media folder programmatically in Magento 2?

I tried to create directory and file and then put content in file programmatically but it does not work. Here is my code in sample.phtml <?php $om = \Magento\Framework\App\ObjectManager::...
0
votes
2answers
274 views

Magento 2.2: How to apply breakpoints in custom .less files

Magento 2.2.3 Ubuntu 16.04 Server VM using VirtualBox with icewm window manager Apache 2.4 MySQL 14.14 PHP 7.0 Custom theme which inherits from Magento/blank I have a custom .phtml file: Vendor/...
1
vote
1answer
3k views

Magento2 category images not showing and not changing

I have a strange problem with Magento 2.2.3. A few month ago we added some category images and they were shown correctly. Today we added some new category images and changes some of the old ones. But ...
0
votes
0answers
320 views

Image “Browse file” and “Upload” button are missing problem

I am using magento 1.9.2.2 version, but product image "Browse button" and "Upload button" are missing from admin. I have checked all media for in Adminhtml and Skin folder all are there. Please help ...
0
votes
1answer
315 views

Magento 2.1.7, 2.2.3 : wrong placeholder image url

I try created new product without image after that view in frontend the image url not true. I inspect element the url of image not true. .../media/product/placeholder/default/image.jpg lost catalog ...
2
votes
0answers
174 views

Media Storage System Message on Magento 2.2

We are utilizing the database media storage feature on our Magento 2.2 site. We ran the synchronization and got the following system message. We were unable to synchronize one or more media files. ...
0
votes
1answer
166 views

1.9 - Adding Image To Media Gallery Using Import Behavior

I'm currently writing a module which in its essence applies a pre-defined set of images to a product media gallery. It basically loops through a delimited list of filenames and uses ...
1
vote
1answer
1k views

Magento Static and Media url's redirect

So what i want to do is have domain.com as a main domain. static.domain.com (that uses the files of domain.com) as my static view url and media.domain.com (that also uses the files of domain.com) for ...
2
votes
0answers
297 views

Magento 2 - media URL

I have recently migrated a Magento 1.9.x site to Magento 2.2.2. On my product pages, I have noticed that one attribute (which is Text Area), whenever I used Magento directives such as {{media url=...}...
1
vote
0answers
12 views

display images from cache folder, on new server of existing project

I am trying to setup existing Magento project on the local system and new server. I copied all files of the existing project and set it up the entire project. But, no product images are showing on the ...
1
vote
1answer
79 views

What param is expected in getBaseUrl() function in Magento 2

I want to return the image URL using getBaseUrl() function but I can't understand what value to set to the $value variable. $url = $this->_storeManager->getStore()->getBaseUrl( \Magento\...
2
votes
3answers
2k views

Magento 2 getMediaGalleryImages() return null

I am writing an import product job on Magento 2. I want to delete all product images if I need to update the product. I try to use $product->getMediaGalleryImages() to get all the images from the ...
0
votes
2answers
556 views

Using media queries in

I'm extending the blank theme and adding styles to an _extend.less file located in /app/design/frontend/neil/mytheme/web/css/source/_extend.less Inside the file iv've got the following code // ...
1
vote
2answers
632 views

Get all product images on product view page separately

I want to change the design product image section on view page. Trying to fetch all three Images seprately. $ImageAll = $_product->getMediaGalleryImages(); $mainImg = Mage::helper('...
1
vote
0answers
16 views

Can I alphabetize the images in the media storage?

It is time consuming to search for images in the media storage files. Can I alphabetize the images in the media storage files?
0
votes
1answer
1k views

Magento 1.9.3.4 : Change favicon icon

I want to change favicon icon while access pdf/image file from media path.I actually i already tried to change from admin and also update icon in media and skin folder but favicon icon not changed in ...
2
votes
3answers
6k views

How to add images to product gallery programmatically in magento2?

How to add images to product gallery programmatically in magento2...
1
vote
0answers
346 views

Duplicate CACHE and PRODUCT folders in /media

My /media folder size is getting a little out of hand. We have 8379 product records in the catalog. About 1000 of them are related to a customizer extension that we have, but the rest are Configurable ...
1
vote
0answers
175 views

Configurable Products: Update Media Gallery - Not Just Base Image

I feel what I am trying to do is simple, but cannot find a still-supported method of doing this. I would like to have the entire media-gallery update to the images listed on the associated SKU (via ...
1
vote
1answer
361 views

How to fetch all images under a folder in Magento 1.9

I want to make a image gallery (for this there are some free and paid version available) but to show them as per Month wise there is no such free extension. mainfolder May someimage.jpg ...
12
votes
4answers
25k views

How to get media directory path in a phtml file in magento 2?

Used the below method in order to get the media directory path, but it returns an error. $om = \Magento\Core\Model\ObjectManager::getInstance(); $directoryList = $om->get(\Magento\App\Filesystem\...