sjqzhang / go-fastdfs

go-fastdfs 是一个简单的分布式文件系统(私有云存储),具有无中心、高性能,高可靠,免维护等优点,支持断点续传,分块上传,小文件合并,自动同步,自动修复。Go-fastdfs is a simple distributed file system (private cloud storage), with no center, high performance, high reliability, maintenance free and other advantages, support breakpoint continuation, block upload, small file merge, automatic synchronization, automatic repair.(similar fastdfs).
https://gitee.com/sjqzhang/go-fastdfs
The Unlicense
3.94k stars 747 forks source link

做性能测试时文件下载报错问题 #342

Closed Patience-wyf closed 2 years ago

Patience-wyf commented 2 years ago

断点续传上传的图片显示是成功的,但是查看gofastdfs保存的图片是不完整的,比如有的图片只显示了一般。然后下载图片时报错。下面是日志。 日志打印如下:2022-04-14 15:38:59 [ERR] [fileserver.go:1417] [gofd.(*Server).ResizeImage] png: invalid format: invalid checksum 通过url地址打开图片后,解码失败了。这个报错一般会是什么原因导致的

sjqzhang commented 2 years ago

上传成功要置换正常的url,先看看能不能置换url