As a course author, you have two options you can use to add a file to a task when creating your course:
Within the additional instructions
In any other field using a link to the resource.
Option 1: Add a file to Additional instructions
At the top of a task, you'll see Additional instructions (optional). When you drop this down, you'll see Add a file just below the box.
Option 2: Add a file to Resources and link to it
If you'd like the file somewhere other than additional instructions, you can use the link option and insert your relative link from the resources area.
Head to the resources area within your course and copy the link for the resource you'd like to add.
In your task, use the link option to insert the link to your resource.
Other articles you might be interested in
And If you need to know how to upload a file to a task as a learner