• Resolved spungedave

    (@spungedave)


    I feel like I must be something something really obvious here. On this lesson page I’m creating, I need to allow the user to download a CSV file so they can practice the topic at hand in their own instance. I’ve uploaded the CSV file into the media library, and inserted it into the lesson post, where it appears to be hyperlinked, but it does nothing.

    I’ve tried zipping it but no joy. I’ve created a button and ensured the html for the hyperlink includes download=”filename” but still no joy.

    Any advice on how to do this thing – which per many YouTube videos should be very simple and easy – would be greatly appreciated. I don’t really want to clutter the site by adding a download manager plugin with tons of features I don’t need, but perhaps that’s the only way?

    Thanks in advance…

    DW

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @spungedave,

    I visited the page you linked to, but I can’t see the CSV you’ve added to attempt to offer as a download. Am I missing something?

    Kind Regards,
    Tim

    Thread Starter spungedave

    (@spungedave)

    Sorry I neglected some context – this is a lesson in the middle of a course that only registered and enrolled users can see. I needed to change a setting on the course so anyone can see the content for now. Try again and you’ll see the links.

    BTW, I just learned this is evidently a Chrome thing. I tested on Edge just now and both the download link and the button work fine. Very puzzling…

    Hi @spungedave,

    No worries, I did wonder if that might be the case.

    The issue seems to be with your SSL. Can you try updating the download link from HTTP to HTTPS. I.e.:
    https://example.com/wp-content/uploads/2021/04/filename.zip
    to
    https://example.com/wp-content/uploads/2021/04/filename.zip

    I’ve redacted the exact details as this post is public!

    Chrome is quite security conscious, where as Edge is a bit more relaxed – would explain why it works in one browser and not the other.

    Thanks!

    Kind Regards,
    Tim

    Thread Starter spungedave

    (@spungedave)

    Never mind folks, this was apparently being caused by my early errors persisting due to my caching system. All good now thanks…

    Hi @spungedave,

    Oh, magic! It changed from a .zip to a .csv!

    I notice the CSV is being dished from a HTTPS rather than HTTP too, so that’s something to note going forward. You have a valid SSL, so make the most of it. ??

    Kind Regards,
    Tim

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Download links not working’ is closed to new replies.