add a file to an outgoing packet