Total Posts:
19
Karma:
95
Joined:
6/9/2015
Location:
United Kingdom
I've just upgraded my site from 3.8 to 4.1. A number of my information pages / topics had hard-coded images in them, for example: https://www.caplamps.co.uk/safety-caplamps-industry-sectors Since the upgrade the images are no longer displaying. The files are there, I copied them across from the old site, and have checked on the server. For example https://www.caplamps.co.uk/Content/Images/Misc/Industry.jpg exists. But it returns a standard IIS 404 error page. I've tried moving the Images/Misc folder to different locations, and renaming it, but makes no difference. Any ideas what I need to do to show these static images again? Thanks, Simon
Total Posts:
392
Karma:
5323
Joined:
4/22/2014
Location:
India
The Content directory is no longer used from nopCommerce 4.0. You will need to update your image urls to the new image location (which points to wwwroot/images)
Total Posts:
19
Karma:
95
Joined:
6/9/2015
Location:
United Kingdom
Thanks, but I'd already spotted that folder and tried it. So this file physically exists: https://www.caplamps.co.uk/wwwroot/images/uploaded/Outdoor.jpg And this page references files from that folder: https://www.caplamps.co.uk/safety-caplamps-industry-sectors Thanks, Simon
Total Posts:
19
Karma:
95
Joined:
6/9/2015
Location:
United Kingdom
Thank you very much - makes sense now! As an aside I see that all my uploaded PDFs (product datasheets etc.) are still at the old Content/Files folder - but are served correctly. There is an - as yet empty - files folder in the wwwroot folder. Does this matter? Should the 4.1 upgrade have moved these files? Or do they remain where they were? Thanks, Simon
Total Posts:
392
Karma:
5323
Joined:
4/22/2014
Location:
India
The product download files that you upload are saved in the database as binary and are served from there.
Total Posts:
19
Karma:
95
Joined:
6/9/2015
Location:
United Kingdom
I'm using Nop Attachments, and it's set to file system for storage. Looks like this plugin is still using the old /Content/Files/Attachments folder.