Refactoring for file management
Refactoring for file management model and controller