Fix #1130: Can't attach file (PDF) to contact.
(grafted from 09535cdd6346ca12b8cf0e44ba33e6d0ab85b3ea)

--HG--
extra : source : 09535cdd6346ca12b8cf0e44ba33e6d0ab85b3ea