rz上传文件破损问题
作者:admin 发布时间:August 8, 2011 分类:DELL1520
最近rz上传文件,发现有异常,普通的php/txt文件没问题,但是如果是tar.gz zip 这样的压缩文件,会出现如下问题
我尝试用secure CRT rz上传同一个zip文件
[test@test tmp]$ ll -sh
total 216K
212K -rw------- 1 test test 205K Aug 4 14:32 test1.zip
4.0K -rw------- 1 test test 833 Aug 4 14:32 test2.zip
其中test2.zip解压以后会出现如下提示
[test@test tmp]$ unzip test2.zip
Archive: test2.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of test2.zip or
test2.zip.zip, and cannot find test2.zip.ZIP, period.
检查文件大小和真实文件不符,说明文件破损了,检查了secure CRT对于rz的配置,几乎是没有什么可以改动的
这里的upload files as ASCII需要勾选掉,就正常了,这个是选项是什么意思呢,为什么要这样?
有找了点文章大概意思就是对于不可见内容的不要勾选,否则会有问题。于是我取消了选择,就好了。

评论已关闭