Update attachment_uploader.rb

Fixes #3657

Similar to
#3204
and
#4670