Should my Static Images be in /pub or root? Magento 2 The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Magento 2 composer update with sample data removes uploaded images?Images not appearing in pub/static folder in Magento2Magento 2 product images not showing, 2 different directoriesMagento 2: Nginx pub/static not autogenerating, only works with command line static-content:deployShould I run catalog:images:resize on each deployment or only incidentally?Magento2 Symlink from pub/pub folderHow can I make product price dynamic on Magento page?How can I make a cms pages product price dynamic?Magento2 Certain Mobile Product Page Images too big - not responsiveMagento 2.3.0 product image cache resizing images to look very bad
Why can't wing-mounted spoilers be used to steepen approaches?
1960s short story making fun of James Bond-style spy fiction
Can the Right Ascension and Argument of Perigee of a spacecraft's orbit keep varying by themselves with time?
Why are there uneven bright areas in this photo of black hole?
Identify 80s or 90s comics with ripped creatures (not dwarves)
ELI5: Why do they say that Israel would have been the fourth country to land a spacecraft on the Moon and why do they call it low cost?
My body leaves; my core can stay
Accepted by European university, rejected by all American ones I applied to? Possible reasons?
What force causes entropy to increase?
What aspect of planet Earth must be changed to prevent the industrial revolution?
Can I visit the Trinity College (Cambridge) library and see some of their rare books
US Healthcare consultation for visitors
For what reasons would an animal species NOT cross a *horizontal* land bridge?
Is it ok to offer lower paid work as a trial period before negotiating for a full-time job?
Why not take a picture of a closer black hole?
Did the new image of black hole confirm the general theory of relativity?
Can each chord in a progression create its own key?
Why doesn't a hydraulic lever violate conservation of energy?
Python - Fishing Simulator
Does Parliament need to approve the new Brexit delay to 31 October 2019?
Would an alien lifeform be able to achieve space travel if lacking in vision?
Was credit for the black hole image misappropriated?
Can withdrawing asylum be illegal?
Am I ethically obligated to go into work on an off day if the reason is sudden?
Should my Static Images be in /pub or root? Magento 2
The 2019 Stack Overflow Developer Survey Results Are In
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Magento 2 composer update with sample data removes uploaded images?Images not appearing in pub/static folder in Magento2Magento 2 product images not showing, 2 different directoriesMagento 2: Nginx pub/static not autogenerating, only works with command line static-content:deployShould I run catalog:images:resize on each deployment or only incidentally?Magento2 Symlink from pub/pub folderHow can I make product price dynamic on Magento page?How can I make a cms pages product price dynamic?Magento2 Certain Mobile Product Page Images too big - not responsiveMagento 2.3.0 product image cache resizing images to look very bad
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
My product pages have landing pages with images. So when you scroll down in the description I have hard coded landing pages with images.
Those images are manually uploaded in my public_html/landingpage
So it is in the root of Magento.
Now my question is, if I should move it to /pub/landingpage
magento2
add a comment |
My product pages have landing pages with images. So when you scroll down in the description I have hard coded landing pages with images.
Those images are manually uploaded in my public_html/landingpage
So it is in the root of Magento.
Now my question is, if I should move it to /pub/landingpage
magento2
add a comment |
My product pages have landing pages with images. So when you scroll down in the description I have hard coded landing pages with images.
Those images are manually uploaded in my public_html/landingpage
So it is in the root of Magento.
Now my question is, if I should move it to /pub/landingpage
magento2
My product pages have landing pages with images. So when you scroll down in the description I have hard coded landing pages with images.
Those images are manually uploaded in my public_html/landingpage
So it is in the root of Magento.
Now my question is, if I should move it to /pub/landingpage
magento2
magento2
asked Jun 6 '17 at 17:40
FancymanFancyman
142314
142314
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
Best place is root/pub/media folder. It's specially designed for user uploaded media files
Btw, does that foldder ever get deleted by magento? when you clean cache or storage? Because those images are not uploaded by magento, but by me in cpanel. Those are images like for about page ect...
– Fancyman
Jun 6 '17 at 17:54
no, Magento never clean up pub/media folder by self
– KAndy
Jun 7 '17 at 12:34
add a comment |
Please check below url, I think its very helpful to you.
https://community.magento.com/t5/Magento-2-x-Technical-Issues/Images-not-loading-on-product-View-page/m-p/65593#M2246
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%2f177731%2fshould-my-static-images-be-in-pub-or-root-magento-2%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Best place is root/pub/media folder. It's specially designed for user uploaded media files
Btw, does that foldder ever get deleted by magento? when you clean cache or storage? Because those images are not uploaded by magento, but by me in cpanel. Those are images like for about page ect...
– Fancyman
Jun 6 '17 at 17:54
no, Magento never clean up pub/media folder by self
– KAndy
Jun 7 '17 at 12:34
add a comment |
Best place is root/pub/media folder. It's specially designed for user uploaded media files
Btw, does that foldder ever get deleted by magento? when you clean cache or storage? Because those images are not uploaded by magento, but by me in cpanel. Those are images like for about page ect...
– Fancyman
Jun 6 '17 at 17:54
no, Magento never clean up pub/media folder by self
– KAndy
Jun 7 '17 at 12:34
add a comment |
Best place is root/pub/media folder. It's specially designed for user uploaded media files
Best place is root/pub/media folder. It's specially designed for user uploaded media files
answered Jun 6 '17 at 17:46
KAndyKAndy
16.1k23245
16.1k23245
Btw, does that foldder ever get deleted by magento? when you clean cache or storage? Because those images are not uploaded by magento, but by me in cpanel. Those are images like for about page ect...
– Fancyman
Jun 6 '17 at 17:54
no, Magento never clean up pub/media folder by self
– KAndy
Jun 7 '17 at 12:34
add a comment |
Btw, does that foldder ever get deleted by magento? when you clean cache or storage? Because those images are not uploaded by magento, but by me in cpanel. Those are images like for about page ect...
– Fancyman
Jun 6 '17 at 17:54
no, Magento never clean up pub/media folder by self
– KAndy
Jun 7 '17 at 12:34
Btw, does that foldder ever get deleted by magento? when you clean cache or storage? Because those images are not uploaded by magento, but by me in cpanel. Those are images like for about page ect...
– Fancyman
Jun 6 '17 at 17:54
Btw, does that foldder ever get deleted by magento? when you clean cache or storage? Because those images are not uploaded by magento, but by me in cpanel. Those are images like for about page ect...
– Fancyman
Jun 6 '17 at 17:54
no, Magento never clean up pub/media folder by self
– KAndy
Jun 7 '17 at 12:34
no, Magento never clean up pub/media folder by self
– KAndy
Jun 7 '17 at 12:34
add a comment |
Please check below url, I think its very helpful to you.
https://community.magento.com/t5/Magento-2-x-Technical-Issues/Images-not-loading-on-product-View-page/m-p/65593#M2246
add a comment |
Please check below url, I think its very helpful to you.
https://community.magento.com/t5/Magento-2-x-Technical-Issues/Images-not-loading-on-product-View-page/m-p/65593#M2246
add a comment |
Please check below url, I think its very helpful to you.
https://community.magento.com/t5/Magento-2-x-Technical-Issues/Images-not-loading-on-product-View-page/m-p/65593#M2246
Please check below url, I think its very helpful to you.
https://community.magento.com/t5/Magento-2-x-Technical-Issues/Images-not-loading-on-product-View-page/m-p/65593#M2246
answered Apr 9 at 9:31
Anas MansuriAnas Mansuri
63
63
add a comment |
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%2f177731%2fshould-my-static-images-be-in-pub-or-root-magento-2%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