Unable to upload images in umbraco v13

We recently moved our site umbraco v13. While working locally (locahost) i’m unable to upload images. There’s no server error both in the browser or in the logviewer. It creates an entry in the database but the image just doesn’t get uploaded into the /media folder. I checked the permissions of the /media folder and its the same as our previous site so I’m not sure what’s going on. Anyone have any ideas what could be happening? I tried different browsers but same issue.

After doing some research it does look like the image uploads are working however they are going into the Oursite\wwwroot\media folder but the server is looking for them in the Oursite\Media folder which is the path we used in our old site. Any way to resolve this?

Might need more information, but could you check if your config file contains

“Umbraco”: {
“CMS”: {
“Global”: {
“ContentPath”: “~/media”
}
}
}

Is this an upgrade from another version of Umbraco?

Have the templates been changed to use the correct path too?

Enable detailed logging in appsettings.json to catch any silent errors.

Yeah this was an upgrade from a previous version. It turned out that v13 uploads images to /wwwroot/media but it was trying to serve them from the /media folder. I ended up moving everything to /wwwroot/media and deleting the /media folder. That did the trick.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.