refactor transmit function, move it into _uploadFile; also fixing progress report when resuming an upload