Update attachment_uploader.rb

Fixes #3657