+ 1

Dowloadable file

How can I put in my webpage a file that gets downloaded when I click o a button or a link or whatever?

6th Sep 2019, 8:26 PM
Abderrahman DAKIR ALLAH
Abderrahman DAKIR ALLAH - avatar
8 Respostas
+ 5
<iframe src="https://www.url.com/......pdf" height="500px" width="500px"> </iframe> Here, url.com is the web address of the file you want to link from google drive.
6th Sep 2019, 8:59 PM
NightFox
NightFox - avatar
+ 5
DAKIR ALLAH Abderrahman If you have the file that you want the user to be able to download within the same file as your HTML code, you can just use the following syntax (although it may not work on SL) - <a href = "fileName" download>Download</a>
6th Sep 2019, 9:02 PM
Faisal
Faisal - avatar
+ 3
If its an image, it is possible. This code: https://code.sololearn.com/WgeY5xl48bj5/?ref=app The image i linked downloads when i visit the webpage. But, the image displays as well.
6th Sep 2019, 8:42 PM
NightFox
NightFox - avatar
+ 3
DAKIR ALLAH Abderrahman It is possible from google drive using inline frame in HTML.
6th Sep 2019, 8:47 PM
NightFox
NightFox - avatar
+ 2
Marzan[#DREAMS] Can you please show me how I know the iframe but how do we do that?
6th Sep 2019, 8:48 PM
Abderrahman DAKIR ALLAH
Abderrahman DAKIR ALLAH - avatar
+ 2
Marzan[#DREAMS] thank you so much bro i'll try iy
6th Sep 2019, 9:01 PM
Abderrahman DAKIR ALLAH
Abderrahman DAKIR ALLAH - avatar
+ 1
Marzan[#DREAMS] can we do it for a pdf file or a word file
6th Sep 2019, 8:43 PM
Abderrahman DAKIR ALLAH
Abderrahman DAKIR ALLAH - avatar
+ 1
yea i would of just suggested a simple anchor link with the file href, and file name the guy did above me...but also can name file so its download name is different from file name...just for a little bit more info on the matter
7th Sep 2019, 7:11 AM
kay cruz
kay cruz - avatar