saml: get uploaded metadata file content as a string (#86217)
gitea/authentic/pipeline/head This commit looks good Details

This commit is contained in:
Frédéric Péters 2024-01-27 09:35:25 +01:00
parent 670481b026
commit c582103077
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ class TextAndFileWidget(forms.widgets.MultiWidget):
# If there is a file input use it
file = self.widgets[1].value_from_datadict(data, files, name + '_1')
if file:
file = file.read(file.size)
file = file.read(file.size).decode()
if file:
value = file
else: