FTP image up-loader using C#

This program upload the image from local directory to FTP and maintain a log in .mdb and .txt

FTP Image Upload Document

Abstract

The purpose of this is to copy files from local directory to FTP, depending upon the date. Every new file uploaded in the local directory will be uploaded in the FTP respectively.

The system finds the last date & time of upload from the file log and uploads all the files that are added after that date from local directory to FTP.

Settings

The details required for settings, can be accessed through keys of application configuration page. The keys are as follow:-
  1. FTP Url- It is the Url that is required to access the FTP, where the files will be uploaded (ftp://test.FTP.com/testftp/image/ )
  2. Local Directory- It is the Url that is required to access the Local Directory from where the files will be taken to uploaded. ( c:/local/images/)
  3. Username: the username required for accessing FTP
  4. Password: the password required for accessing FTP
Steps inside application
  1. Get maximum date and time from the file log (File log maintain all the details, of the files that has been uploaded in the FTP).
  2. File read is performed on the local directory, and on the bases of maximum date i.e last date of upload, all the files present in the local directory are chosen to be uploaded in FTP.
  3. The new files are uploaded from local directory to FTP.
  4. The file log is updated and details of new files added in the FTP is inserted in the file log
Error Log

Any errors that are reported in the process of uploading files from local directory to FTP are saved in an appended manner in notepad and saved as error log.

The error log creates file on bases of date (yyyymmdd), and any error that are reported on that date are saved in the respected file.