VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Upload File To An FTP Server (Authorization Required For MOST Servers)

Synthesize  (3 Submissions)   Internet/HTML   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

Many people have been bugging me to give them the source for uploading a file to their website. Well, for everyone that wants it, here is the open source code. It is in text format, so you don't have to download anything. Don't forget to vote for me!

Inputs
INPUTS (ARGUMENTS/PARAMETERS) ¯¯¯¯¯¯ ¯¯¯¯¯¯¯¯¯ ¯¯¯¯¯¯¯¯¯¯ InetControl (Inet): The Inet control to use for the operation. strURL (String): The server's URL that you want to upload to. MOST SERVERS REQUIRE USERNAMES AND PASSWORDS SO DON'T THINK THAT YOU CAN UPLOAD WITHOUT AUTHORIZATION. strUserName (String): The username used to login to the server. strPassword (String): The password used to login to the server. strLocalFile (String): The LOCAL path AND file name of the file to upload. strRemoteFile (String): The REMOTE path AND file name to save the file as on the server. NOTE: IT MUST NOT BE A FULL PATH! USE '/' FOR THE ROOT DIRECTORY!

Assumes
REQUIRED KNOWLEDGE (KNOW-NEEDS) ¯¯¯¯¯¯¯¯ ¯¯¯¯¯¯¯¯¯ ¯¯¯¯ ¯¯¯¯¯ Know how to add a control/component to a form.

Returns
OUTPUTS (RETURN VALUES) ¯¯¯¯¯¯¯ ¯¯¯¯¯¯ ¯¯¯¯¯¯ This function returns TRUE if the upload WAS successful. This function returns FALSE if the upload WAS NOT successful.

Side Effects
SIDE EFFECTS (BUGS/PROBLEMS) ¯¯¯¯ ¯¯¯¯¯¯¯ ¯¯¯¯ ¯¯¯¯¯¯¯¯ There as no side effects for this code that I know of.

API Declarations
API CALLS (DECLARATIONS)
¯¯¯ ¯¯¯¯¯ ¯¯¯¯¯¯¯¯¯¯¯¯
NONE

Rate Upload File To An FTP Server (Authorization Required For MOST Servers) (3(3 Vote))
Upload File To An FTP Server (Authorization Required For MOST Servers).bas

Upload File To An FTP Server (Authorization Required For MOST Servers) Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters