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]

The tag has no usage guidance.

0
votes
0answers
8 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
1answer
42 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
25 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
68 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
25 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
15 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
35 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
18 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
32 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
62 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
25 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
205 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
32 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
399 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
266 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
44 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
281 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
4answers
2k 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
153 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
2k 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
205 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
2k 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
280 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
274 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
148 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
144 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
260 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
11 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
69 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
498 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
539 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
5k views

How to add images to product gallery programmatically in magento2?

How to add images to product gallery programmatically in magento2...
1
vote
0answers
325 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
162 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
311 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 ...
11
votes
4answers
22k 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\...
0
votes
1answer
374 views

Get Sku, Name and Description Joined With 'Value' from `catalog_product_entity_media_gallery`

In order to migrate data between ERP systems, I need to rename images to conform to a specific format for the new system, coming from Magento. I'm going to write a script to automate this but need ...
2
votes
2answers
731 views

Magento 2.1.5 - Rest api media upload image not saving - Could not save the product

Working on Magento version - 2.1.5. Hello Techies I am working on magento 2 project and learning rest api . I am trying to upload product image via rest api . Url of rest api = http://127.0.0.1/...
1
vote
1answer
963 views

Product images returning 404 after updating Magento 2

I just updated Magento 2 CE from 2.0.7 to 2.1.5. I used the terminal method and all seems well. Everything is working and the new version is reflected in the bottom of the admin section. Only problem ...
0
votes
2answers
3k views

How to add media gallery entries via REST API - Magento 2

I stored image in pub/media/catalog/product. How to add that images into media gallery entries. I have tried like http://myhost/rest/V1/products "media_gallery_entries"=> array( array( ...
5
votes
1answer
1k views

All product images missing from admin but show in DB and front end

Using Magento v1.9.2.2 with patches SUPEE-7405 v1, SUPEE-7405 v1.1, SUPEE-8788, SUPEE-9652. Browsers: Safari & Chrome on Mac OSX. I'm having an issue where none of the images in the product admin ...
1
vote
1answer
1k views

loading media file from css

I'm new to magento (using it from only 1 weeks) and I'm trying to use the following instruction from a css file located in skin/frontend/responsive/<storeViewName>/css/<MyDevName>/...
0
votes
4answers
66 views

Image not loading in .phtml file

I have an image stored in media/images. I have a .phtml file that includes the following code: <tr> <td><img src="{{media url='images/Bocadillos.png'}}" width="30" height="30"><...
14
votes
4answers
9k views

Magento 2 WYSIWYG Media image directive using admin url

Why is magento 2 creating directives for media images using the admin url? for example when i add an image on category page WYSIWYG it adds <img src="{{media url="wysiwyg/image.jpg"}}" alt="" /&...
8
votes
2answers
1k views

Magento 2 is there a faster way to change product media gallery entries programmatically

I need to do a massive update of product data but what I need to do can't be achieved with product import. In example I need to update media gallery and categories for given products, but the solution ...
1
vote
0answers
43 views

What's SFTP utility? How can I get it & use it to upload images by CSV file? [closed]

What's SFTP utility? How can I get it & use it to upload images by CSV file?