setPayload

Switches the active payload type and clears any file/output state.