add function 'saveFile' on FileAction class
Merge branch 'chong' into dev