Skip to content

Commit

Permalink
Merge pull request #51 from sdslabs/development
Browse files Browse the repository at this point in the history
Release merge into master
  • Loading branch information
ayanchoudhary authored Oct 24, 2021
2 parents 78faa32 + a9cd8b1 commit 9270692
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion resources/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ def get_file_details_and_upload(
mime_type = file_type.split(":")[1].split(";")[0]
ext = file_type.split("/")[1].split(";")[0]
base64String = file.split(",")[1]

if ext == "vnd.openxmlformats-officedocument.wordprocessingml.document":
ext = "docx"
rand = str(random.randint(0, 100000))
temp = open("temp" + rand + "." + ext, "wb")
if is_file_object:
Expand Down

0 comments on commit 9270692

Please sign in to comment.