Other Software > Developer's Corner
Writing Files to an FTP with a Buffer using BCB 2006...
(1/1)
Renox:
Is it possible for anyone to explain to me how to upload a file to an FTP site using BCB 2006... Apparently, there is no TIdFTP->Upload() function that allows you to do everything automated... At least, I don't know of one... You have to open IO streams and such and I dont know the proper edicate for that... If anyone could fill me in on the "how-to's" that would be great!
Renox:
lol... I figured this one out as well... And I feel pretty stupid for it too... The fact that I wasted a post for something so simple became an annoyance as soon as I figured out that the "Put()" function served as the "Upload()" function back in BCB 4.0.... Oh well!
Example of what I was trying to do:
--- ---TIdFTP1->Connect();
TIdFTP1->ChangeDir("/Uploads");
TIdFTP1->Put(OpenDialog1->FileName, ExtractFileName(OpenDialog1->FileName));
// ^ Uploads a file that the user has selected from the OpenDialog that was executed previously...
mouser:
all's well that ends well. What are you making? It seems fun.
Navigation
[0] Message Index
Go to full version