Welcome to the Treehouse Community
Looking to learn something new?
I need code help on one of my project
I am building a website, in which i want to have a button that says download and when user clicks on that button the files from my server gets copied to their computer. and as soon as they click the button they get to choose where they want to save it.
when its time to update content i will make an update button on the same page, when they click the update button the new files on my server gets copied to the destination they select and override the old (previously copied files) files.
Chris Predkiewicz5,799 Points
Hello, If the file to be downloaded already exists on your server, then you must provide the link to the download file when the user clicks the button <a href="download file.zip">Click here to Download</a> If you want the users to update the file on your server, that needs to be a file upload feature within a form element. You need to use some server-side language to perform the function like PHP to handle the file uploads.