After migrate from 3.7 to 4.2 uploaded is not showing.

Posted: June 24, 2019 at 5:55 AM Quote #238600
The pictures are saved to filesystem. after migration, the uploaded path of the images is like "/Content/Images/uploaded/Images/CategoryImages/banners/Markers/Copic/x.png". Nothing change to the source code but database migrated.
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: June 24, 2019 at 7:49 AM Quote #238610
Hello,

During the 3.90 -> 4.00 upgrade the content files in nopCommerce were moved from the ~/Content to the  ~/wwwroot directory. That made some of the paths change. For instance, the uploaded images should be in the /images/uploaded rather than the /content/images/uploaded directory.
That makes your file path to be /Images/uploaded/Images/CategoryImages/banners/Markers/Copic/x.png.

Hope that helps!

Regards,
Anton
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
www.Nop-Templates.com - the best place for nopCommerce themes and plugins

Follow us on
Facebook: http://www.facebook.com/NopTemplates
Twitter: http://twitter.com/NopTemplates
Blog: http://www.nop-templates.com/blog

www.Nop-Templates.com
nopCommerce Solution Partners
Posted: June 25, 2019 at 1:57 AM Quote #239653
Nop-Templates.com wrote:
Hello,

During the 3.90 -> 4.00 upgrade the content files in nopCommerce were moved from the ~/Content to the  ~/wwwroot directory. That made some of the paths change. For instance, the uploaded images should be in the /images/uploaded rather than the /content/images/uploaded directory.
That makes your file path to be /Images/uploaded/Images/CategoryImages/banners/Markers/Copic/x.png.

Hope that helps!

Regards,
Anton


Thank you. Yes, it helps. But should not the migration script take care of it? Replace /content/ by "/" solve the problem. Thanks again.
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Premium support services
  • Dedicated premium support services provided by core developers are intended for persons who run mission critical websites, work on projects with tight deadlines, or want to get dedicated support.
Professional services
  • Want to open a new store? Want to take your store to the next level? Need a custom extension? We can customize nopCommerce to fit your store perfectly. Request a quote to get started.
eCommerce CONFERENCE 2019
Learn more