content bytes
This commit is contained in:
parent
6acfa8a56f
commit
3a18f5d47f
1 changed files with 1 additions and 1 deletions
|
|
@ -124,7 +124,7 @@ def save_file(fname, content, dt, dn, folder=None, decode=False, is_private=0, d
|
|||
if isinstance(content, text_type):
|
||||
content = content.encode("utf-8")
|
||||
|
||||
if "," in content:
|
||||
if b"," in content:
|
||||
content = content.split(",")[1]
|
||||
content = base64.b64decode(content)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue