but I clicked the button but //nothing happened, no download occurred, nothing happened on Windows 10
- Did you type in or copy/paste the URL into the TEdit box then click the button?
- What is the URL to the file you are trying to download? Please share this so we can test and verify URL is legit and functional.
- Does the URL open correctly in a web browser?
- Are you testing on localhost, LAN, or internet?
- Is the internet connection working on that machine?
- Where are you trying to save the downloaded file? (The path in my code will not work unless you created this exact same path on your system)
- Does the destination directory exist?
So what you need to do to get this to work:
1. Create a folder where you want to save the downloded URL
2. Add this folder path to the code and replace :
DownloadFile(Edit1.Text, '/home/aruna/debug/download-test.html'); with
DownloadFile(Edit1.Text, '
/your/file/download/path/download-test.html');
I am using linux so since your using Windows please adjust the path delimiter from '/' to '\'
3. Enter the URL in the TEdit box next to the button
4. Click the button.
Give me till the end of the day I will send you another zip with full error checking and handling hopefully will make things easier for you.