Autor Beitrag
Fabian W.
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Sa 06.05.06 21:19 
Hallo,

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
procedure TForm1.FTPLoadUp(Host, User, Kennwort, Datei, Nach: String);
begin
idftp.Host := Host;
idftp.Password := Kennwort;
idftp.Username := User;
idftp.Connect;
idftp.ChangeDir('/');
idftp.Passive := True;
idftp.Put(PChar(Datei), Pchar(Nach), false);
idftp.Disconnect;
end;
Wenn ich mit dieser Procedure eine Dateohochladen will geht das auch,. aber nur so lange wie die Datei nicht schon existiert - falls doch gibt es 2 Möglichkeiten:
idftp.Put(PChar(Datei), Pchar(Nach), false);dann kommen kein Fehler, die Datei wird aber auhc nicht überschrieben, soll die aber ;-) also: idftp.Put(PChar(Datei), Pchar(Nach), TRUE);und dann kommen die Fehler: besteht die Datei nämlich schon bekomme ich folgende Meldung: zuerst der dateiname dann
Zitat:
": append/restart not permitted, try again"

Ich hab so ziemlich alles übeer diese Materie im Forum gelesen was ich fand - überall gabs Probleme, die dann auf wundersame weise vom Fragesteller gelöst wurden - aber nicht gepostet :-(. Kennt jm. den Fehler??


mfg
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Sa 06.05.06 21:56 
Moin!

Das ist IMHO kein Fehler, sondern eine Vorgabe des FTP-Server-Betreibers. ;)

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
Fabian W. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: So 07.05.06 07:19 
Ich hab das Procedere mit Servern von Kilu.de und Funpic.de getestet :roll:
Andere Programme können das doch auch ohne weiteres?! Weiß jm ob man das bei einem der genannten Hostern abstellen kann?
DorJo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 139



BeitragVerfasst: Sa 19.04.08 16:25 
Ich hab deinen Code mal ausprobiert und der geht gor ni :(

Obwohl ich auch nen funpic server hab!
Chryzler
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1097
Erhaltene Danke: 2



BeitragVerfasst: Sa 19.04.08 16:52 
Vielleicht vorher gucken obs die Datei gibt und wenn ja, die Datei zuerst löschen. So macht das so weit ich weiß auch SmartFTP.
DorJo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 139



BeitragVerfasst: Sa 19.04.08 17:03 
Was muss man denn bei "Pchar(Nach)" eintragen?