The create dialog for “Media” does not match anything defined in the “~/umbraco/config/create/UI.xml”

After upgrading an Umbraco installation from 3.0 to 4.7.1.1, I got the error:

"The create dialog for "Media" does not match anything defined in the "~/umbraco/config/create/UI.xml" while trying to upload images.

To fix this, simply open UI.xml located in: /umbraco/config/create/
Search for:

<nodetype alias="media"></nodetype>

and rename it to uppercase:

<nodetype alias="Media"></nodetype>

Restart IIS and problem should be solved.

The create dialog for Media...