Two days ago, I sent a person a file to check it. Today, he sent me the file and he told me that he cough a cold.
If I want to say the following, which one is correct? I don't know conditional type 2 is OK or type 3.

1)"If I knew you cough a cold, I wouldn't send the file".
2) "If I had known you cough a cold, I wouldn't have sent the file".