Direct File Download on Content Page

Jump to solution
s_greathouse
Community Participant

Ahoy,

I need to be able to force a direct download of a file on a Canvas content page without it sending them to a different page first. It's very important 1) not to have them navigate away from this page, even if it does open in a new window; 2) ensure they have a local copy. I don't care about them being able to preview on the page or not (i.e. I know where that feature is).

The solution to force the download that I found in the community said to delete the "?wrap=1" in the html. This didn't work for me.

Cheers.

Labels (1)
0 Likes
1 Solution
werner_huysman1
Community Participant

Hi,

you could achieve this in the html with a link of this format this: https://school.com/courses/11060/files/1796109/download, combined with target="_top".

View solution in original post