So I’ve read that error 1 is returned when the file is a directory or could not be created (by the socket.get method)
I am trying to download a file to the temp directory (I had the idea it was a sure location to download files regarding permissons) but in SOME windows machines this is failing…
I don’t get it, since I am creating a folderitem which is not nil, (SO I suppose it is being created created successfully)
Here’s the code…
[code]Download = new FolderItem(SpecialFolder.Temporary.Child(FileName.DefineEncoding(Encodings.UTF8)))
If Download <> Nil Then
main.UPDATESOCK.Get(AUTOUPDATE.DireccionHTTP+NombreOnline, Download)
else
return
end[/code]
The code you posted creates a folderitem object, but does not create the file on disk. You could attempt to create the file and show an error if it fails.
Yes, attempt to create the file before calling the socket. You may need to remove it if it succeeds. At least you’ll know if that is the real problem, or if you’re getting a 1 returned for some other reason.