implements sending of uploaded files.