Direct download link on a web page

Solved
Beair Posted messages 40 Status Member -  
Beair Posted messages 40 Status Member -

Hello,

I have a fairly simple need; on a web page, I want to place two buttons. One for downloading a PDF and the other for a DOCX.
My idea is that clicking them should directly initiate the download.
And I need these two documents to be available for a duration of 3 months (so we can rule out from the start any online file hosting services that only keep the files for a few days in their free versions).

First, I tried using Gdrive, but it doesn't really work directly; you first have to open the file in a new tab, then find the arrow in the top right that starts the download.

Next, I tried with Dropbox, but that doesn't really work either. I did find the trick of adding dl=1 at the end of the file URL to directly initiate the download, but Dropbox requires you to log in before starting the download.

That's where I am. Do you have any ideas or suggestions?

Thank you in advance.

Benoit

3 answers

  1. jee pee Posted messages 9444 Registration date   Status Moderator Last intervention   9 981
     

    Hello,

    If you're creating a web page, why not put the files in the same place as your HTML file?


    1
  2. bazfile Posted messages 58503 Registration date   Status Moderator Last intervention   20 273
     

    Hello.

    I'm with Free and I'm using Free transfert, but the link will need to be changed every month because the maximum validity of the link is one month. I think other operators must have the same system.

    Depending on the internet provider, we can also connect an external hard drive to the box and generate links without a time limit, for example, with Free it's possible to generate unlimited links via the web application Freebox OS, then through its "file explorer" which allows access to files present on the hard drive connected to the Freebox. You just need to right-click on the file, then click on "share this file," and choose the duration of availability for the file, and a link is created.


    bazfile
    Moderator/Security Contributor.
    A hello, a response, a thank you are always appreciated.

    1
    1. Beair Posted messages 40 Status Member
       

      Thank you very much, I have a freebox and will head towards this solution.

      0
  3. bg62 Posted messages 23433 Registration date   Status Moderator Last intervention   2 435
     

    You already have 2 good suggestions... :)

    For my part, I would add: https://www.cjoint.com/

    All you need to do is set it up properly when uploading, then incorporate the link(s) into the code of your page....

    :)


    1
    1. Beair Posted messages 40 Status Member
       

      Great, thanks for the suggestion. I had visited a good ten similar online services, but this one meets the need with the option of having the file stored online indefinitely.

      0