add function 'saveFile' on FileAction class