fix text file cannot upload bug