fixed bug with course and course instance ids when file was uploaded by an author