It is not allowed, if an official sees you he/she will ask you to put your feet down, there are usually posters in the train asking you not to do this and when my local train company did a survey to find out what they could improve this was the number one thing that annoyed other passengers.