Skip to content

Post attached files in announcement #620

Answered by Thetwam
SebasMeza asked this question in Q&A
Discussion options

You must be logged in to vote

@SebasMeza The fix has been released in CanvasAPI version 3.2.0

Your first code block should work now. Alternatively, you can set attachment equal to the filename (as a string) and CanvasAPI will handle opening, reading, and closing the file for you.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@SebasMeza
Comment options

@Thetwam
Comment options

@Thetwam
Comment options

Answer selected by Thetwam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants