topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday March 28, 2024, 6:50 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Writing Files to an FTP with a Buffer using BCB 2006...  (Read 4419 times)

Renox

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 58
    • View Profile
    • Donate to Member
Writing Files to an FTP with a Buffer using BCB 2006...
« on: January 23, 2007, 09:10 PM »
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

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 58
    • View Profile
    • Donate to Member
Re: Writing Files to an FTP with a Buffer using BCB 2006...
« Reply #1 on: January 24, 2007, 07:28 PM »
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...
« Last Edit: January 24, 2007, 07:30 PM by Renox »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Writing Files to an FTP with a Buffer using BCB 2006...
« Reply #2 on: January 27, 2007, 12:38 PM »
all's well that ends well.  What are you making? It seems fun.