fix(): Ajustado arquivo responsavel em salvar arquivos em disco
This commit is contained in:
parent
332745e03a
commit
ec0b383c35
1 changed files with 1 additions and 5 deletions
|
|
@ -36,11 +36,7 @@ def save_file_from_base64(
|
|||
|
||||
try:
|
||||
# Decodifica o Base64
|
||||
# file_bytes = base64.b64decode(base64_content)
|
||||
clean_base64_content = base64.b64decode(
|
||||
base64_content.strip().replace("\n", "").replace("\r", "")
|
||||
)
|
||||
file_bytes = base64.b64decode(clean_base64_content)
|
||||
file_bytes = base64.b64decode(base64_content)
|
||||
|
||||
# Grava o arquivo em disco
|
||||
with open(file_path, "wb") as f:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue