In magento 2.3.5, in order to add images within the product import csv, the images should be in:


While in the pass, the path was:


My question is, is there anyway to change the default path from the new path to the old one ? I tried many tricks, like writing the below


in the "Images File Directory" field, but it didn't work.

do you have any other suggestion ? it is critical to me to use pub/media.

On the other side, I think The default path is taking from file:


So how can I override the file in my theme ?

  • Can you tried with url? Like, yourdomain.com/pub/media/import/images/yourimagename.png Oct 9 '20 at 9:53
  • No, it is not accessible using the url Oct 9 '20 at 10:08

You can override that value by adding that field in core_config_data

you can run below sql code for the same

INSERT INTO `core_config_data` (`scope`, `scope_id`, `path`, `value`)
VALUES ('default', '0', 'general/file/import_images_base_dir', 'pub/media');
  • Thank you for your answer, However, I doubt I could do this trick, in fact, If I rerun the composer install or upgrade etc.. it will re-override the path. Oct 9 '20 at 10:07
  • config.xml is for default values and if you want to override the default values then you can add in core_config_data table like this Oct 9 '20 at 11:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.