Patch to make phabricator file attachment policies more sane.

See http://fab.wmflabs.org/T477
and https://secure.phabricator.com/T4589#14

Also related: https://secure.phabricator.com/D10054

Change-Id: I030574d1258b9f53a0779be647efb11c7c62b275