mirror of
https://github.com/simon-ding/polaris.git
synced 2026-04-21 19:27:30 +08:00
fix: alist upload
This commit is contained in:
@@ -41,7 +41,7 @@ func (a *Alist) Copy(src, dest string) error {
|
||||
a.progresser = b.Progress
|
||||
|
||||
uploadFunc := func(destPath string, destInfo fs.FileInfo, srcReader io.Reader, mimeType *mimetype.MIME) error {
|
||||
_, err := a.client.UploadStream(srcReader, destPath)
|
||||
_, err := a.client.UploadStream(srcReader, destInfo.Size(), destPath)
|
||||
return err
|
||||
}
|
||||
mkdirFunc := func(dir string) error {
|
||||
|
||||
Reference in New Issue
Block a user