+ 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?
8 ответов
+ 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.
+ 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>
+ 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.
+ 3
DAKIR ALLAH Abderrahman It is possible from google drive using inline frame in HTML.
+ 2
Marzan[#DREAMS] Can you please show me how
I know the iframe but how do we do that?
+ 2
Marzan[#DREAMS] thank you so much bro i'll try iy
+ 1
Marzan[#DREAMS] can we do it for a pdf file or a word file
+ 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