diff --git a/box/box.go b/box/box.go index 33eb1acca..3e3eb67c4 100644 --- a/box/box.go +++ b/box/box.go @@ -1032,7 +1032,7 @@ func (o *Object) Update(in io.Reader, src fs.ObjectInfo, options ...fs.OpenOptio size := src.Size() modTime := src.ModTime() - remote := src.Remote() + remote := o.Remote() // Create the directory for the object if it doesn't exist leaf, directoryID, err := o.fs.dirCache.FindRootAndPath(remote, true)