Fixed crashing when uploading large data files