Sorry for inconvinience. This is a bug in Coursework. We are working on a fix right now. We will let you know as soon as we fix the issue.
As a workaround, you can upload the file to Dropbox, Google Drive, or OneDrive and get a publicly accessabile link, and use websave function to make the file available for student solution.