Hi,
The GetHTTPFile command works fine on everything except the HTML5 export. It appears to download the file and even the progress counter works, but when it has finished downloading the file does not exist.
Here is a quick example of how to replicate the issue. When the file download is completed it should say either "File exists" or "Files does not exist".
httpid = CreateHTTPConnection()
SetHTTPHost(httpid, "www.mydomain.com", 1)
GetHTTPFile(httpid, "files/image1.jpg", "image1.jpg")
do
if (GetHTTPFileComplete(httpid) = 1)
if (GetFileExists("image1.jpg"))
print("File exists.")
else
print("File does not exist.")
endif
else
print("Downloading: " + Str(GetHTTPFileProgress(httpid)))
endif
Sync()
loop
Any advice anyone has would be very much appreciated.
Incidentally, does anyone know where the downloaded files may be stored? I am guessing they may just be kept in memory, or perhaps saved in the browser cache.
Chart data provided with kind permission from
ELSPA