When you hotlap in LFS, there is a flag in the top right corner which states weather your current lap is valid, or invalid, i.e., have you cut the course, or gone off track.
You need to complete a VALID lap, and then post the replay of that valid lap.
Only valid laps with be counted.