Rewriting of uploadFile and programPage