preventing the double post of a file