Three things you need to check in this case: 

  • You are respecting the maximum upload size
  • You have the permission to add/ delete attachments
  • [Cloud] The app user Smart Courses has the permission to add/ delete attachments in the target Confluence space