Re: Problem downloading files from a website
Posted: Wed May 29, 2019 4:57 pm
Indeed they show me the LiveCode installation folder, but how do I change it to make it my download folder so?
Questions and answers about the LiveCode platform.
https://forums.livecode.com/
Code: Select all
...
answer folder "Please select a folder to download the file to:"
## User/you clicked CANCEL:
if it = EMPTY then
exit to top
end if
## The chosen folder is now in the variable IT
put it into tFolder
## Now you can use this to concatenate the correct filename for your downloaded file:
libURLDownloadToFile "ftp://username:password@ftpupload`.`net/htdocs/test-file.psd",(tFolder & "/test-file.psd"),"download_done"
...