TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
FTP image up-loader using C#
Upendra Pratap Shahi
Apr 09, 2015
6
k
0
1
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
In this blog you will see FTP image up-loader using C# console.
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:-
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/ )
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/)
Username: the username required for accessing FTP
Password: the password required for accessing FTP
Steps inside application
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).
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.
The new files are uploaded from local directory to FTP.
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.
Next Recommended Reading
How To Add Pictures Or Images In Excel Sheet Using EPPlus .NET Application (C#) - Part Five