try fix memory overuse when upload file