Fix upload the same file bug. Refactoring