Downloading file on custom page | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Downloading file on custom page

I have created a site/portfolio, locally for now(will try to take it online soon) and I have a question. I have made a download button for my CV and I have connected it to my CV file, which I've put in the same folder as the html, css and js files. Of course if I take it out of the file the connection is lost and it can't be downloaded. My question is: when I take this site online how will the file be connected and generally how is this done? Is it through a database? Just informing you that I have obviously yet, to check how the uploading on the web will be done(host,server etc), I am a complete novice at this.

24th Jul 2022, 3:28 PM
Stefanos Ntouvlis
Stefanos Ntouvlis - avatar
2 Answers
+ 4
Upload all your folder files on your hosting server. The CV file also has to be in those folder files The way you used to link to your CV file when the website is local , it will work the same when you host your website Ex: If The link to you file was (../assets/CV.pdf), it will work the same when you host your website
24th Jul 2022, 3:39 PM
umunyarwanda
umunyarwanda - avatar
0
Ok I get it. Can you explain where will the file actually be. Like will it be on the host's (mine) database, which is created automatically through the hosting service I will choose?
24th Jul 2022, 3:49 PM
Stefanos Ntouvlis
Stefanos Ntouvlis - avatar