Can't upgrade from 11.0.6 to 11.0.8 - /seahub/media/avatars/*': No such file or directory

Even though the flag might trigger this error, the root cause in my opinion is the very strange construction regarding the media / avatars folders. For me, it was easy to deploy Seafile in a Docker environment, but it was hours of work to find out why avatars were not displayed, and I have to manually re-copy files and correct folder permissions after every update. So I would strongly wish for a revision of whatever makes this so special in contrast to all other data/database storage.

Just a selection of years-long problems with avatars, which in my opinion should not at all be an isolated factor that could cause any trouble: