File Storage: Used simpler logic, preventing possible security loophole