diff --git a/panel/widgets/misc.py b/panel/widgets/misc.py index 90ddf7d116..2a73db1933 100644 --- a/panel/widgets/misc.py +++ b/panel/widgets/misc.py @@ -242,7 +242,7 @@ def _update_label(self): raise ValueError('Must provide filename if file-like ' 'object is provided.') label = '%s %s' % (label, filename) - self.set_param(label=label) + self.label = label self._default_label = True @param.depends('embed', 'file', 'callback', watch=True) @@ -292,5 +292,5 @@ def _transfer(self): data = "data:{mime};base64,{b64}".format(mime=mime, b64=b64) self._synced = True - self.set_param(data=data, filename=filename) + self.param.set_param(data=data, filename=filename) self._update_label()