saml: get uploaded metadata file content as a string (#86217)
gitea/authentic/pipeline/head This commit looks good
Details
gitea/authentic/pipeline/head This commit looks good
Details
This commit is contained in:
parent
670481b026
commit
c582103077
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue