Fixed the bug when upload new file because of route resolve