After migrate from 3.7 to 4.2 uploaded is not showing.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
4 years ago
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.
4 years ago
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
4 years ago
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 topic was automatically closed 365 days after the last reply. New replies are no longer allowed.