fixed submitpost file to work on server