feat(ftp-server): support resumable downloading (#7792)

This commit is contained in:
KirCute_ECT
2025-01-10 20:50:20 +08:00
committed by GitHub
parent 6812ec9a6d
commit 25b4b55ee1
5 changed files with 52 additions and 17 deletions

View File

@ -63,7 +63,7 @@ func (f *FileUploadProxy) Write(p []byte) (n int, err error) {
}
func (f *FileUploadProxy) Seek(offset int64, whence int) (int64, error) {
return 0, errs.NotSupport
return f.buffer.Seek(offset, whence)
}
func (f *FileUploadProxy) Close() error {