OOIION-1603

Only attach extensions to attachment downloads when necessary.