Skip to content

Commit

Permalink
Encodes File Content before Passing to for Upload
Browse files Browse the repository at this point in the history
  • Loading branch information
nizarmah committed Oct 24, 2020
1 parent fd7f90c commit 17dae12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion edxval/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1194,7 +1194,7 @@ def import_transcript_from_fs(edx_video_id, language_code, file_name, provider,
video_id=edx_video_id,
language_code=language_code,
file_format=file_format,
content=ContentFile(file_content),
content=ContentFile(file_content.encode('utf-8')),
provider=provider
)

Expand Down

0 comments on commit 17dae12

Please sign in to comment.