Magento2 Product import (image filenames) Planned maintenance scheduled April 23, 2019 at...
The Nth Gryphon Number
Sally's older brother
Centre cell contents vertically
How do Java 8 default methods hеlp with lambdas?
Flight departed from the gate 5 min before scheduled departure time. Refund options
Is there a spell that can create a permanent fire?
How does TikZ render an arc?
Was the pager message from Nick Fury to Captain Marvel unnecessary?
Does the main washing effect of soap come from foam?
Short story about astronauts fertilizing soil with their own bodies
Keyboard layout stuck into CZ_german no english layout after update, restore into original EN_us and EL_Gr ones
Why is a lens darker than other ones when applying the same settings?
Why did Bronn offer to be Tyrion Lannister's champion in trial by combat?
My mentor says to set image to Fine instead of RAW — how is this different from JPG?
As a dual citizen, my US passport will expire one day after traveling to the US. Will this work?
Pointing to problems without suggesting solutions
Releasing Patch File for BSD3 Licensed Project
Relating to the President and obstruction, were Mueller's conclusions preordained?
Does the Rock Gnome trait Artificer's Lore apply when you aren't proficient in History?
Find general formula for the terms
Is it OK to use the testing sample to compare algorithms?
malloc in main() or malloc in another function: allocating memory for a struct and its members
Random body shuffle every night—can we still function?
Is this Kuo-toa homebrew race balanced?
Magento2 Product import (image filenames)
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?Adding images via CSV with non standard file extensionsChanging Media Gallery Primary ImageMagento image importing problems - CSVImport Product - Image not workingMagento 2: Product Import Error - Product Type is invalid or not supported. Duplicates found in column names [SOLVED]Magento2 Custom Media Image Attribute do not work in FrontendMagento2 - Import Product with Images Using Absolute PathTrying to get CloudFront to work with Magento 2Magento import image problemMagento 2.2.2 - Import Product Images CategoricallyImport a csv file in Bo magento 2
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I'm not sure that this is a bug, as it's intentional from the looks of it, but ...
I'm working on a migration from Zencart and the original site's media folder has been downloaded and we've written a custom importer.
The feedback from the product importer is very generic, but it turns out that the original media including a space in it's filename is an issue.
Specifically, the PATH_REGEXP within MagentoCatalogImportExportModelImportProductValidatorMedia.php doesn't allow for this.
Is there any reason for this restriction? Is this due to how different file systems may interpret special characters? If I alter the REGEX to allow for spaces, Magento2 parses the file successfully, and actually changes the filename to a more comfortable format (underscores instead of spaces)
Steps to reproduce
- Create product import
- Ensure image reference within base_image, small_image or thumbnail_image contains a space
- Place files within pub/media/images/
Expected result
- Media images pass validation
Actual result
Media Images do not pass validation
Wrong URL/path used for attribute image in row(s): 2, 3, 4, 5, 6, 7, 8, 10, 11, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49
- Wrong URL/path used for attribute small_image in row(s): 2, 3, 4, 5, 6, 7, 8, 10, 11, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49
- Wrong URL/path used for attribute thumbnail in row(s): 2, 3, 4, 5, 6, 7, 8, 10, 11, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49
magento2 product import product-images
bumped to the homepage by Community♦ 1 min ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
|
show 1 more comment
I'm not sure that this is a bug, as it's intentional from the looks of it, but ...
I'm working on a migration from Zencart and the original site's media folder has been downloaded and we've written a custom importer.
The feedback from the product importer is very generic, but it turns out that the original media including a space in it's filename is an issue.
Specifically, the PATH_REGEXP within MagentoCatalogImportExportModelImportProductValidatorMedia.php doesn't allow for this.
Is there any reason for this restriction? Is this due to how different file systems may interpret special characters? If I alter the REGEX to allow for spaces, Magento2 parses the file successfully, and actually changes the filename to a more comfortable format (underscores instead of spaces)
Steps to reproduce
- Create product import
- Ensure image reference within base_image, small_image or thumbnail_image contains a space
- Place files within pub/media/images/
Expected result
- Media images pass validation
Actual result
Media Images do not pass validation
Wrong URL/path used for attribute image in row(s): 2, 3, 4, 5, 6, 7, 8, 10, 11, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49
- Wrong URL/path used for attribute small_image in row(s): 2, 3, 4, 5, 6, 7, 8, 10, 11, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49
- Wrong URL/path used for attribute thumbnail in row(s): 2, 3, 4, 5, 6, 7, 8, 10, 11, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49
magento2 product import product-images
bumped to the homepage by Community♦ 1 min ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
You have to keep all images inside pub/media/import folder.
– Rakesh Jesadiya
Apr 24 '17 at 10:09
mageplaza.com/kb/…
– Ankit Shah
Apr 24 '17 at 10:13
Thanks both, but that doesn't really answer my query - I know what the issue is, but I'm wanting to know IF it should be like that?
– Douglas Radburn
Apr 24 '17 at 13:57
Did you find some side effects to this REGEXP update ?
– Franck Garnier
Oct 9 '17 at 14:10
Not yet @FranckGarnier
– Douglas Radburn
Oct 9 '17 at 14:26
|
show 1 more comment
I'm not sure that this is a bug, as it's intentional from the looks of it, but ...
I'm working on a migration from Zencart and the original site's media folder has been downloaded and we've written a custom importer.
The feedback from the product importer is very generic, but it turns out that the original media including a space in it's filename is an issue.
Specifically, the PATH_REGEXP within MagentoCatalogImportExportModelImportProductValidatorMedia.php doesn't allow for this.
Is there any reason for this restriction? Is this due to how different file systems may interpret special characters? If I alter the REGEX to allow for spaces, Magento2 parses the file successfully, and actually changes the filename to a more comfortable format (underscores instead of spaces)
Steps to reproduce
- Create product import
- Ensure image reference within base_image, small_image or thumbnail_image contains a space
- Place files within pub/media/images/
Expected result
- Media images pass validation
Actual result
Media Images do not pass validation
Wrong URL/path used for attribute image in row(s): 2, 3, 4, 5, 6, 7, 8, 10, 11, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49
- Wrong URL/path used for attribute small_image in row(s): 2, 3, 4, 5, 6, 7, 8, 10, 11, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49
- Wrong URL/path used for attribute thumbnail in row(s): 2, 3, 4, 5, 6, 7, 8, 10, 11, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49
magento2 product import product-images
I'm not sure that this is a bug, as it's intentional from the looks of it, but ...
I'm working on a migration from Zencart and the original site's media folder has been downloaded and we've written a custom importer.
The feedback from the product importer is very generic, but it turns out that the original media including a space in it's filename is an issue.
Specifically, the PATH_REGEXP within MagentoCatalogImportExportModelImportProductValidatorMedia.php doesn't allow for this.
Is there any reason for this restriction? Is this due to how different file systems may interpret special characters? If I alter the REGEX to allow for spaces, Magento2 parses the file successfully, and actually changes the filename to a more comfortable format (underscores instead of spaces)
Steps to reproduce
- Create product import
- Ensure image reference within base_image, small_image or thumbnail_image contains a space
- Place files within pub/media/images/
Expected result
- Media images pass validation
Actual result
Media Images do not pass validation
Wrong URL/path used for attribute image in row(s): 2, 3, 4, 5, 6, 7, 8, 10, 11, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49
- Wrong URL/path used for attribute small_image in row(s): 2, 3, 4, 5, 6, 7, 8, 10, 11, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49
- Wrong URL/path used for attribute thumbnail in row(s): 2, 3, 4, 5, 6, 7, 8, 10, 11, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49
magento2 product import product-images
magento2 product import product-images
asked Apr 24 '17 at 10:05
Douglas RadburnDouglas Radburn
1,9101027
1,9101027
bumped to the homepage by Community♦ 1 min ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 1 min ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
You have to keep all images inside pub/media/import folder.
– Rakesh Jesadiya
Apr 24 '17 at 10:09
mageplaza.com/kb/…
– Ankit Shah
Apr 24 '17 at 10:13
Thanks both, but that doesn't really answer my query - I know what the issue is, but I'm wanting to know IF it should be like that?
– Douglas Radburn
Apr 24 '17 at 13:57
Did you find some side effects to this REGEXP update ?
– Franck Garnier
Oct 9 '17 at 14:10
Not yet @FranckGarnier
– Douglas Radburn
Oct 9 '17 at 14:26
|
show 1 more comment
You have to keep all images inside pub/media/import folder.
– Rakesh Jesadiya
Apr 24 '17 at 10:09
mageplaza.com/kb/…
– Ankit Shah
Apr 24 '17 at 10:13
Thanks both, but that doesn't really answer my query - I know what the issue is, but I'm wanting to know IF it should be like that?
– Douglas Radburn
Apr 24 '17 at 13:57
Did you find some side effects to this REGEXP update ?
– Franck Garnier
Oct 9 '17 at 14:10
Not yet @FranckGarnier
– Douglas Radburn
Oct 9 '17 at 14:26
You have to keep all images inside pub/media/import folder.
– Rakesh Jesadiya
Apr 24 '17 at 10:09
You have to keep all images inside pub/media/import folder.
– Rakesh Jesadiya
Apr 24 '17 at 10:09
mageplaza.com/kb/…
– Ankit Shah
Apr 24 '17 at 10:13
mageplaza.com/kb/…
– Ankit Shah
Apr 24 '17 at 10:13
Thanks both, but that doesn't really answer my query - I know what the issue is, but I'm wanting to know IF it should be like that?
– Douglas Radburn
Apr 24 '17 at 13:57
Thanks both, but that doesn't really answer my query - I know what the issue is, but I'm wanting to know IF it should be like that?
– Douglas Radburn
Apr 24 '17 at 13:57
Did you find some side effects to this REGEXP update ?
– Franck Garnier
Oct 9 '17 at 14:10
Did you find some side effects to this REGEXP update ?
– Franck Garnier
Oct 9 '17 at 14:10
Not yet @FranckGarnier
– Douglas Radburn
Oct 9 '17 at 14:26
Not yet @FranckGarnier
– Douglas Radburn
Oct 9 '17 at 14:26
|
show 1 more comment
1 Answer
1
active
oldest
votes
I've also recently encountered this on M2.2.2
After some investigation, I personally believe this is a feature as opposed to a bug as the Magento team appear validating image names as web safe i.e. no spaces or special characters.
Historically when working with M1.x (little/no image name validation) I spent many hours fixing images when clients tried to upload images which were not web safe, so I'm welcoming this validation with open arms.
Shame they don't filter it when they copy it to the right path (since the original is never used outside of the import) - rather than rejecting. If they have rules, impose them internally.
– Douglas Radburn
Jan 11 '18 at 11:27
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "479"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f171400%2fmagento2-product-import-image-filenames%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I've also recently encountered this on M2.2.2
After some investigation, I personally believe this is a feature as opposed to a bug as the Magento team appear validating image names as web safe i.e. no spaces or special characters.
Historically when working with M1.x (little/no image name validation) I spent many hours fixing images when clients tried to upload images which were not web safe, so I'm welcoming this validation with open arms.
Shame they don't filter it when they copy it to the right path (since the original is never used outside of the import) - rather than rejecting. If they have rules, impose them internally.
– Douglas Radburn
Jan 11 '18 at 11:27
add a comment |
I've also recently encountered this on M2.2.2
After some investigation, I personally believe this is a feature as opposed to a bug as the Magento team appear validating image names as web safe i.e. no spaces or special characters.
Historically when working with M1.x (little/no image name validation) I spent many hours fixing images when clients tried to upload images which were not web safe, so I'm welcoming this validation with open arms.
Shame they don't filter it when they copy it to the right path (since the original is never used outside of the import) - rather than rejecting. If they have rules, impose them internally.
– Douglas Radburn
Jan 11 '18 at 11:27
add a comment |
I've also recently encountered this on M2.2.2
After some investigation, I personally believe this is a feature as opposed to a bug as the Magento team appear validating image names as web safe i.e. no spaces or special characters.
Historically when working with M1.x (little/no image name validation) I spent many hours fixing images when clients tried to upload images which were not web safe, so I'm welcoming this validation with open arms.
I've also recently encountered this on M2.2.2
After some investigation, I personally believe this is a feature as opposed to a bug as the Magento team appear validating image names as web safe i.e. no spaces or special characters.
Historically when working with M1.x (little/no image name validation) I spent many hours fixing images when clients tried to upload images which were not web safe, so I'm welcoming this validation with open arms.
answered Jan 6 '18 at 20:49
Dan NorrisDan Norris
25919
25919
Shame they don't filter it when they copy it to the right path (since the original is never used outside of the import) - rather than rejecting. If they have rules, impose them internally.
– Douglas Radburn
Jan 11 '18 at 11:27
add a comment |
Shame they don't filter it when they copy it to the right path (since the original is never used outside of the import) - rather than rejecting. If they have rules, impose them internally.
– Douglas Radburn
Jan 11 '18 at 11:27
Shame they don't filter it when they copy it to the right path (since the original is never used outside of the import) - rather than rejecting. If they have rules, impose them internally.
– Douglas Radburn
Jan 11 '18 at 11:27
Shame they don't filter it when they copy it to the right path (since the original is never used outside of the import) - rather than rejecting. If they have rules, impose them internally.
– Douglas Radburn
Jan 11 '18 at 11:27
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f171400%2fmagento2-product-import-image-filenames%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
You have to keep all images inside pub/media/import folder.
– Rakesh Jesadiya
Apr 24 '17 at 10:09
mageplaza.com/kb/…
– Ankit Shah
Apr 24 '17 at 10:13
Thanks both, but that doesn't really answer my query - I know what the issue is, but I'm wanting to know IF it should be like that?
– Douglas Radburn
Apr 24 '17 at 13:57
Did you find some side effects to this REGEXP update ?
– Franck Garnier
Oct 9 '17 at 14:10
Not yet @FranckGarnier
– Douglas Radburn
Oct 9 '17 at 14:26