| |
|
|
 Jac de Lad | Beim Download einer nicht vorhandenen Datei erzeugt DownloadFile() eine Datei von etwa 1kB Größe und &BytesRead gibt nicht -1 zurück. Kann jemand ähnliches bestätigen?
Jac  |
|
|
| Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE) Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP | 21.05.2008 ▲ |
|
|
|
|
 Jac de Lad | Ich korrigiere: Es wird eine andere Datei runtergeladen. Das hat wohl iF so seingestellt. Ich kann damit leben. |
|
|
| Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE) Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP | 21.05.2008 ▲ |
|
|
|
|
 | @Jac: Man kann per Konfiguration des Webservers (und per .htaccess) die sog. Fehlerseiten einstellen. Wenn Du möchtest kann ich also eine 0 Byte Datei für Deine Domain zurückgeben lassen, wenn eine Datei nicht existiert. |
|
|
| |
|
|
|
 Jac de Lad | Ja, das wäre besser. 
Aber noch besser wäre, wenn man wirklich keine Datei zurückbekommen würde, denn theoretisch kann es ja sein, dass man eine leere Datei anfordert.
Jac  |
|
|
| Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE) Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP | 22.05.2008 ▲ |
|
|
|
|
 | |
|
| |
|
|
|
 Jac de Lad | Ja, danke, is besser so.  |
|
|
| Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE) Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP | 22.05.2008 ▲ |
|
|
|
|
 | Jac
Beim Download einer nicht vorhandenen Datei erzeugt DownloadFile() eine Datei von etwa 1kB Größe und &BytesRead gibt nicht -1 zurück. Kann jemand ähnliches bestätigen? Jac 
&BytesRead hat hier völlig korrekt reagiert, es hat angezeigt wie viele Bytes vom Webserver auf die DownloadAnfrage gesendet wurden (Stichwort: Fehlerseiten). Eine nicht vorhandene Datei ist für DownloadFile() vlt. eher eine nicht-erreichbare Datei. |
|
|
| |
|
|
|
 Jac de Lad | Jo, so hab ichs jetzt auch verstanden. Gut zu wissen.  |
|
|
| Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE) Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP | 22.05.2008 ▲ |
|
|
|