Shoutbox

[?] Cancelling MsgPlus::DownloadFile - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [?] Cancelling MsgPlus::DownloadFile (/showthread.php?tid=85286)

[?] Cancelling MsgPlus::DownloadFile by roflmao456 on 08-09-2008 at 07:58 AM

i'm currently testing some code and playing around with MsgPlus.DownloadFile.
is there a way to 'cancel' the function before it finishes?


RE: [?] Cancelling MsgPlus::DownloadFile by mynetx on 08-09-2008 at 08:15 AM

Short but simple: No.
Actually I haven't tried, but if you add an OutFile, and try deleting that file, there's two possibilities: either it fails because the file is locked, or it succeeds and the DownloadFile returns with boolSuccess = false.
Might be interesting though what Patchou has to say about this.


RE: [?] Cancelling MsgPlus::DownloadFile by felipEx on 08-09-2008 at 09:48 AM

Well, if you try to download a file in many sections/parts using the xmlhttp object and "Content-Range" header, you can "cancel" the download by stopping the request of the next file byte range from the server. :^)


RE: [?] Cancelling MsgPlus::DownloadFile by Eljay on 08-09-2008 at 09:51 AM

quote:
Originally posted by felipEx
Well, if you try to download a file in many sections/parts using the xmlhttp object and "Content-Range" header, you can "cancel" the download by stopping the request of the next file byte range from the server. :^)

But with xmlhttp you can just .abort() 8-) :P