I can confirm this. Every new upload on my installation is affected after rebuilding container 10 hours ago.
I suppose that the problem is in a new path “/uploads/default/original/ 2X /…/hash”? Where is this 2X coming from? I had done “rake uploads:migrate_to_new_pattern” but it didn’t help.
EDIT: OK, I see from the routes.rb there is a new upload pattern (dir1/dir2) where every uploaded file is moved (/var/www/discourse/config/routes.rb):
get "uploads/:site/original/:dir1/:dir2/:sha.:extension"
Files do exist locally (/shared/uploads/default/original/2X) but Discourse is not routing it right.
EDIT2: I’ve temporarily fixed it by changing the route constraints dir1: /[a-z0-9]/ to dir1: /[a-zA-Z0-9]+/:
get "uploads/:site/original/:dir1/:dir2/:sha.:extension" => "uploads#show", constraints: { site: /\w+/, dir1: /[a-zA-Z0-9]+/, dir2: /[a-f0-9]/, sha: /[a-f0-9]{40}/, extension: /\w{2,}/ }
because “X2” cannot be matched with the default regexp setting. Hope to see the official fix soon ![]()