small file upload fix

This commit is contained in:
dawoodkhan82 2020-10-08 08:23:46 -04:00
parent 6942d2e44d
commit 007f324425

View File

@ -75,6 +75,7 @@ def decode_base64_to_binary(encoding):
def decode_base64_to_file(encoding):
file_obj = tempfile.NamedTemporaryFile()
file_obj.write(decode_base64_to_binary(encoding))
file_obj.flush()
return file_obj