Fix bug when upload a large file is uploaded.