Skip to content

Attach files when creating a new discussion topic #621

@Thetwam

Description

@Thetwam

Describe the bug

Unable to upload attachment files in Course.create_discussion_topic

To Reproduce

See discussion #620 (thanks @SebasMeza)

Possible Solutions

This is a symptom of a larger problem with file handling. The library doesn't currently allow for files to be passed as arbitrary keyword arguments. That's a feature we should probably look into at some point (in a new issue), but for the purposes of this issue we can use an optional argument assignment and the file_or_path util function to achieve the same effect, like in Course.import_outcome. Since assignment isn't mandatory, the implementation will be slightly different.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions