Static images giving 404

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
5 years ago
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
5 years ago
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)
5 years ago
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
5 years ago
The url shouldn't include wwwroot

https://www.caplamps.co.uk/images/uploaded/Outdoor.jpg
5 years ago
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
5 years ago
The product download files that you upload are saved in the database as binary and are served from there.
5 years ago
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.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.