Refactoring File\Upload class