TbeCbEdgeBrowserDownload
Kapselt Download Informationen zur Verwendung im TbeCbEdgeBrowser
Eigenschaften
|
Eigenschaften |
Beschreibung |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
FilePath:C |
Ziel Dateipfad auf Festplatte (kann/darf nur im CbOnDownloadStarting Event verändert werden) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Uri:C |
Quell URL des Downloads (Readonly) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
TotalBytes:N |
Gesammtgröße des Downloads (Readonly) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
ReceivedBytes:N |
Anzahl der Bytes die empfangen wurden (Readonly) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
MimeType:C |
MimeType des Downloads (Readonly) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
ContentDisposition:C |
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition (Readonly) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
InterruptReason:N |
Kann im CbOnDownloadInterrupted Event ausgelesen werden
|
Beispiel
//******************************************************************************
// Vor Download einer Datei
//******************************************************************************
function OnDownloadStarting(oSender, oDownload, lCancel, lHandled)
writeln(oDownLoad.FilePath),
writeln(oDownLoad.ContentDisposition),
writeln(oDownLoad.MimeType),
writeln(oDownLoad.Uri),
writeln(Str(oDownLoad.TotalBytes)),
oDownLoad.FilePath := 'C:\Users\Developer\Downloads\myDowload.file',
end,
AssignEvent(beCBEdgeBrowser, 'CbOnDownloadStarting', 'OnDownloadStarting'),