fixes attachment processing

commit by commit

this should fix http://manage.dimagi.com/default.asp?104202

main change is that it doesn't use the "src" property from submissions in any meaningful way since this is just a temporary URI