Click here to Skip to main content
15,886,721 members
Everything / FTP

FTP

FTP

Great Reads

by deangi
DIY GPS Location Tracker
by Sergio Andrés Gutiérrez Rojas
Easy FTP Upload without files size limit
by Member 12032084
.dll for making the FTP management with VB.NET easier
by DiponRoy
Using SFTP/FTP in ASP.NET CORE projects

Latest Articles

by deangi
IoT data edge hub is designed for remote low power unattended applications. IoT devices can post data to the Hub which will store the data and make it available for later download to core servers. Design is based on a low cost ESP32 platform with an attached SD card.
by deangi
Monitoring AC loads with CT sensors
by deangi
DIY GPS Location Tracker
by DiponRoy
How to run FTP, SFTP, SMTP, Cache, LDAP, SSO and other servers in Docker

All Articles

Sort by Score

FTP 

21 Nov 2023 by deangi
DIY GPS Location Tracker
15 Jul 2012 by Wonde Tadesse
Try to see this MSDN fix article.FIX: You receive an error message when no file is found on an FTP 7.5 server: "550-The system cannot find the file specified"[^]. In addition to this see the links below.1. Using FtpWebRequest to do FTP over SSL[^]2. Error 550 - Can't Access File[^]
18 Oct 2011 by Sergio Andrés Gutiérrez Rojas
Easy FTP Upload without files size limit
28 Jan 2012 by Dalek Dave
I am trying to upload a spreadsheet to my webspace via VBA.It isn't working.Am I missing something obvious?I have stepped through and it crashes at the end, going to the msgbox and showing a fail.I think the problem is at the HOSTNAME stage, but for the life of me I cannot see...
29 Aug 2012 by AmitGajjar
Hi,Length property should not called for the directory. if you call FI.Length for directory it will gives you FileNotFoundException.Refer MSDN for FileInfo.Length[^]Thanks-Amit Gajjar
10 Apr 2013 by Dave Kreskowiak
This isn't going to work. You cannot treat an FTP server like is was a locally attached file system. You have to extract the .ZIP file locally, then upload the resulting files to where they are supposed to be one-by-one.
7 Sep 2013 by Ron Beyer
Well without reading your mega-code dump, here is your problem:Quote:[UnauthorizedAccessException: Access to the path 'C:\Inetpub\vhosts\rechargeerp.com\httpdocs\temp\zttux5i5h0iyhb452dctuhe2_photo.jpg' is denied.]You are trying to access a path that is denied.
4 Oct 2015 by Member 12032084
.dll for making the FTP management with VB.NET easier
13 Jul 2020 by DiponRoy
Using SFTP/FTP in ASP.NET CORE projects
29 Aug 2012 by Zoltán Zörgő
Read here: http://msdn.microsoft.com/en-us/library/system.windows.forms.folderbrowserdialog.selectedpath.aspx[^]Quote:The path of the folder first selected in the dialog box or the last folder selected by the user. You probably need a file to upload. Folder length has no meaning in this context.
27 Dec 2012 by Adam R Harris
Take a look at this:http://www.digitalcoding.com/Code-Snippets/C-Sharp/C-Code-Snippet-Upload-file-to-FTP-Server.html[^]*** EDIT ***There is also a article written here with a class you can use Simple C# FTP Class[^]
21 Jan 2013 by Jochen Arndt
You are using asynchronous mode (INTERNET_FLAG_ASYNC). In this case, all functions will return immediately without waiting for the requested action to be finished. The error 997 / ERROR_IO_PENDING indicates that such an action has not been finished yet.With asynchronous operations, use the...
1 Apr 2013 by Sergey Alexandrovich Kryukov
You can use the class System.Net.FtpWebRequest:http://msdn.microsoft.com/en-us/library/system.net.ftpwebrequest.aspx[^].Look at all the request methods you can issue: http://msdn.microsoft.com/en-us/library/system.net.webrequestmethods.ftp.aspx[^].—SA
2 Apr 2013 by Sergey Alexandrovich Kryukov
As FTP is tagged, which is quite an acceptable approach to the file transfer, all you need is to have FTP server on one of the hosts, and you can develop a client part of FTP transfer using the class...
19 Jul 2013 by Ron Beyer
You should use a BinaryReader instead of a stream reader. You are converting all the bytes to UTF-8 and probably screwing up anything that is binary since it is probably detecting a different encoding. With BinaryReader you don't need to use the Encoding.UTF8.GetBytes, just use the methods on...
23 Sep 2013 by Sergey Alexandrovich Kryukov
"Extract" probably mean parsing of raw mail, which is actually a plain text with MIME mail parts, encoded in different ways, usually base64 (if any). This open-source implementation may help you:http://hpop.sourceforge.net/[^].Not only it can be used as a POP3 client, but also to parse raw...
11 Oct 2013 by ASP.NET Community
FtpWebRequestThe FtpWebRequest class enables you to programatically create FTP connections to FTP Servers and transfer files.  If you are
14 Nov 2013 by Sergey Alexandrovich Kryukov
First of all, to work with FTP as a client, you will need to use the class System.Net.FtpWebRequest:http://msdn.microsoft.com/en-us/library/system.net.ftpwebrequest%28v=vs.110%29.aspx[^].Then you will need to use proper System.Net.FtpWebRequest.Method. Please...
21 Nov 2013 by Ron Beyer
They are both limited by network speed and YOUR handling of the stream. On top of that, FtpWebRequest can only get data from FTP's, and web request can only get them from a web server (http), so which one you use depends on where the file is located more than speed.[Edit]Both...
17 May 2015 by Manfred Rudolf Bihy
No research? Well try this here: Upload file to server using FTP[^]
7 Jun 2016 by Richard MacCutchan
Try at Index :: Support Forum :: WinSCP[^.]
26 Jul 2017 by Satya Prakash Swain
You can refer the following articles:- Reason For File Size Mismatch In FTP And Local Machine[^] Hope it helps.
15 Nov 2023 by Member 9581093
I am new to website programming and I am confused by the different option I have read on this topic. So, I would like to just ask the question very simplistically and make sure I am approaching this correctly. Task I am hosting a Blazor web...
22 May 2013 by Cyrus Neah
The problem is with FtpDataStream.Read(Byte[] buffer, Int32 offset, Int32 size) method. FtpDataStream closes when it is unable to read and gets disposed. You need to create your own custom FtpDataStream and override the Read method and catch ObjectDisposedException error (return 0) to get you...
27 Oct 2011 by Pete O'Hanlon
There's no way to do this with standard FTP, but you may be able to use FTPS - assuming that the site you are trying to connect to supports it. Basically, you can think of FTPs as being the FTP equivalent of HTTPS; in other words it uses SSL for file transfer.There's a demonstration of doing...
1 Mar 2012 by Richard MacCutchan
Use a structure[^] and just add the fields you want into it. As long as both client and server use the same structure you should be able to do what you want. The general protocol of your message would then be to send the fixed length structure first, which will contain, at least, the length of...
28 May 2012 by Sergey Alexandrovich Kryukov
FTP has nothing to do with file types, not counting the difference between "text" and "binary" mode which is pretty much obsolete; so for almost all practical purpose "binary" should be used. This way, you can get/put files as is.Acting as a FTP client .NET is way too simple. All you need is...
16 Nov 2012 by Sergey Alexandrovich Kryukov
You server is not setup properly; in fact, it's not ASP.NET-enabled. Nothing tells me that ASP.NET is even supported. I don't know detail of your hosting, but if this is some external hosting provider, chanced are ASP.NET is not supported at all, unless you specifically requested it: ASP.NET...
21 Dec 2012 by André Kraak
These two article might be useful.Advanced FTP Server[^] Creating an FTP Server in C# - with IPv6 Support[^]
21 Dec 2012 by Jibesh
How simple is this for you Simple FTP demo application using C#.Net 2.0[^]
22 Dec 2012 by Dave Kreskowiak
Since you're using a custom FTPClient library that we know nothing about, it's impossible for anyone to tell you what the problem is.If you've got that FTPClient library from some vendor, you're best source of information is that vendor.If you wrote it yourself, we'd need to see the...
26 Dec 2012 by OriginalGriff
The only thing to do is talk to the hosting company.They would have to do the upgrade (it's their machine, after all) and the may have plans to do it, or they may be waiting for customers to request the change first.
27 Dec 2012 by dtpozner
I try to connect my website via ftp. I succeed connect the folders by my browser, but in visual studion 2012 I can connect the site just by the local address(10.100.101.100)and not by the remote address. I get this error when I try to connect in remote address: "unable to retrieve folder...
27 Dec 2012 by Sergey Alexandrovich Kryukov
Such things depends on a number of factors which are defined by how the server configurations are prescribed for your site. If you use some Web hosting company, you usually have limited access to it, only through some control panel (Plesk, cPanel and the like). Besides, some features are...
27 Dec 2012 by Zoltán Zörgő
FTP does not support chunk parallel upload only parallel chunk download.But FTP extension RFC 3659[^] introduced the REST command to resume broken transfer. As I know FtpWebRequest is supporting this extension, ContentOffset[^] is there, but be aware, that the server also has to support...
16 Jan 2013 by nayansoni
I transfer (upload) the batch file to the server using FTP in C# (FtpWebRequest). Batch files have some commands. My requirement is to transfer the batch file to the server (which I am able to do) and execute that batch file.How do I execute the commands in the batch file on the server from...
11 Feb 2013 by Sergey Alexandrovich Kryukov
SFTP means SSH File Transfer Protocol: http://en.wikipedia.org/wiki/SSH_File_Transfer_Protocol[^].As this protocol is not directly supported in .NET FCL, you will have to use some 3-rd party library. Please...
21 Mar 2013 by Dave Kreskowiak
Come on! How about asking the people who wrote FTPSync instead of a bunch of people who have never heard of it? See the "Support" link here[^]??
27 Mar 2013 by Abhinav S
There are a number of free thierd party tools / articles that will help you achieve this -Simple C# FTP Class[^]Simple FTP library in C#[^]http://ftplib.codeplex.com/[^]
2 Jul 2013 by Garth J Lancaster
I probably would have changed this byte[] buffer = new byte[stream.Length]; int bytesSize = 0; reqStream = request.GetRequestStream(); while ((bytesSize = stream.Read(buffer, 0, buffer.Length)) > 0) { reqStream.Write(buffer, 0,...
8 Oct 2013 by martinv
SFTP, FTP or FTPS?I'm a bit confused, because title says 'SFTP', tag 'FTP' and answer body 'FTPS'. They are not the same.FTP - is the oldest one. Plain file transfer protocol run over unsecured communication channel. FTPS (or FTP/SSL) is FTP run over TLS/SSL secured communication...
19 Oct 2013 by Mike Meinz
Edit the .h file where the duplicate error occurs.Wrap the duplicate declaration(s) with #ifndef and #endif.Example#ifndef typedef unsigned int DWORD#endif
20 Oct 2013 by Sergey Alexandrovich Kryukov
Please see my comment to the question. Instead, use the class System.Net.FtpWebRequest:http://msdn.microsoft.com/en-us/library/system.net.ftpwebrequest.aspx[^].—SA
12 Nov 2013 by Sergey Alexandrovich Kryukov
Reading file via FTP is totally unrelated to OleDB. Instead, you can use the class System.Net.FtpWebRequest:http://msdn.microsoft.com/en-us/library/system.net.ftpwebrequest%28v=vs.110%29.aspx[^].—SA
18 Feb 2014 by Zoltán Zörgő
0) FTP or HTTP than? 1) StreamReader does not use any protocol handler. You can't use it to read a resource on an URL/URI. 2) Use WebRequest[^] class instead. It is quite sophisticated class, you can use it for both ftp and http requests.+1) You still download. There is no actual...
4 Mar 2014 by Krunal Rohit
See the very last line of the code i.e Console.WriteLine().using System;using System.IO;using System.Net;using System.Text;namespace Examples.System.Net{ public class WebRequestGetExample { public static void Main () { // Get the object used...
2 Jun 2014 by DamithSL
try with FtpWebRequest , check How to: Download Files with FTP[^]How to transfer multiple files from FTP server to local directory using C#?[^]Or you can try one of Free FTP Library[^]
19 Sep 2014 by Dominic Burford
Using FTP with Nant
25 Sep 2014 by Kim Togo
Look at the source code for Gett.NET, it can up- and download files from a web serverGett.NET - A library for Ge.tt Web Services[^]
25 Sep 2014 by Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)
Refer1. How to: Upload Files with FTP[^]2. Upload file to server using FTP[^]
17 Jan 2015 by Wendelius
To delete a file via FTP you can use DELE command. For more information, see List of FTP commands[^]Note that the commands differ depending on the client. For example if you use MS client you would use delete. See Ftp: delete[^]
22 Mar 2015 by phil.o
The only way I can see to achieve that, apart from an index file suggested in solution 1, would be to compare datetimes of modification. All other methods (hashing, file version, etc.) require the file to be downloaded.
16 Mar 2016 by leon de boer
space[strlen(space)+1]='\0';...
27 Apr 2016 by Sergey Alexandrovich Kryukov
.NET BCL already offers an FTP client-side facility System.Net.FtpWebRequest:FtpWebRequest Class (System.Net)[^].You will find enough code samples to get a clear idea on how to use it. If you still cannot understand it, understand another thing: people write the library at this level,...
14 Jul 2016 by OriginalGriff
No, FTP doesn't have an "edit mode"Download it, revise it, upload it again.
14 Jul 2016 by F-ES Sitecore
You can get the file into a stream without saving it as a fileHow to: Download Files with FTP[^]Not sure if that's what your question was or, as suggested in Solution 1, you want to manipulate files on the ftp server itself, which can't be done.
14 Jul 2016 by Dave Kreskowiak
You cannot do that.You MUST download the file, do your operations to it and then upload it back to the FTP server.
15 Jul 2016 by F-ES Sitecore
If you don't have file access to the server then you can't check them without downloading them. It doesn't matter how many times you ask this question, the answer is always going to be the same. This is your forth thread on the same question, please stop asking the same question over and over...
4 Aug 2016 by ZurdoDev
1. Creating a folder with a # in it is a bad idea, in my opinion. You are likely to run into weird problems if you use special characters.2. You can use UrlEncode to encode the special characters. HttpUtility.UrlEncode Method (System.Web)[^]
13 Oct 2016 by Suvendu Shekhar Giri
It doesn't looks like a valid question for forum like this but you could have searched that in Google or quora to see what people say.Here is one of such link, check if it helps-What technology does the Xender app uses to transfer files? What makes it so fast? - Quora[^]Hope, it helps :)
26 Sep 2017 by Graeme_Grant
This 3rd-party library should make it a lot easier for you: GitHub - robinrodricks/FluentFTP: An FTP and FTPS client for .NET & .NET Standard, optimized for speed. Provides extensive FTP commands, File uploads/downloads, SSL/TLS connections, Automatic directory listing parsing, File...
3 Apr 2018 by Peter_in_2780
Since you are using a web request, the filename is being treated as a URL. The character # is a special character in URLs, and needs to be encoded, such as # Other special characters will need similar encoding.
18 Feb 2019 by Bloody Chicken
This program is designed to upload an XML file and a zip file automatically created to your FTP server. It can be used for software update.
15 May 2019 by phil.o
I cannot find anything in NSFTOOLS: List of FTP commands for the Microsoft command-line FTP client[^] which allows to determine whether a folder's element is a folder or a file. I do not think you will be able to achieve your goal by using purely the script facility of genuine Windows ftp...
19 Jul 2019 by MadMyche
The most likely reason is that while the # may be valid in a filename, it is used as a delimiter in a URL. Reference: https://www.ietf.org/rfc/rfc1738.txt[^] RFC 1738, published December 1994 Unsafe: Characters can be unsafe for a number of reasons. The space character is unsafe because...
6 May 2022 by matblue25
See: https://winscp.net/eng/docs/logging_xml. Note that it says, “The XML logging, being used along with scripting, is most typically enabled from command-line, using /xmllog parameter. It can be enabled in preferences too.”
3 Nov 2011 by wellcometoend
Imports System.Net.FtpWebRequestImports System.Net.NetworkInformation Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Try'server path Dim clsRequest As System.Net.FtpWebRequest =_ ...
6 Dec 2011 by hansoctantan
I have a program that automatically download a file from FTP ServerI have a code that runs thru BackgroundWorker that download a file and it works fine.The problem is when I try using three BackgroundWorkers that downloads a different files at the same time, there's one file that I can't...
27 Oct 2011 by ThePathFinder
Hi,My program written in C-sharp, needs to access FTP and get files. BUT i want to send the password encrypted while sending request to access FTP, so it doesn't appear as plain-text over the network. But for authentication to FTP requires a plain password, not in encrypted form.Can anyone...
3 Nov 2011 by Sergey Alexandrovich Kryukov
An FTP server does not have a top or bottom; one would say it's bottomless (but not topless, even though there is no a "top") :-)An FTP server does not have a command for uploading of more than one file; such operation has to be a set of operations each uploading a single file, that's...
4 Nov 2011 by JawadHafiz
I am uploading my website and i am having an admin folder as www.admin.xxxx.xx, i want to access my image folder in root how to access that folder i.e to get path of images for admin pages
4 Nov 2011 by andreyakub
I've written a small windows service application that periodically checks an ftp site in the local network for new files and downloads them to a local folder. For this, I've used the basic FTP functionality that is provided in the .net library. But the problem that I've encountered is that some...
9 Nov 2011 by donanderson
I have a routine that recursively deletes a directory structure on a FTP server. This works well until it runs into a hidden file.Is there a way to get ListDirectoryDetails to show hidden files? Once shown, is there a way to force the delete with...
13 Nov 2011 by manak chand
When our client try to access our ftp site the error message appeared as below;"Windows cannot access this folder.Make sure you typed file name correctlyand that you have permission to access this folder.Detail:A connection to the server could not be established.When trying to...
13 Nov 2011 by Prerak Patel
http://support.microsoft.com/kb/814473[^]http://support.microsoft.com/kb/918208[^]
13 Nov 2011 by MaulikDusara
Hi manak chand,Create and configure FTP website project[^]http://www.iis.net/ConfigReference/system.ftpServer/caching/credentialsCache[^]
15 Nov 2011 by ARBebopKid
I have looked for FTPS code/component via Google and haven't found one that I can get to work in my c# app.Does anyone have one they have personally used?
15 Nov 2011 by Sergey Alexandrovich Kryukov
I did not use it, but there is a library on CodeProject, please see An FTP secure client library for C#[^].—SA
6 Dec 2011 by S.Raaj Nishanth
Hi,I'm writing a java code to transfer and delete remote files using FTP. Basically i'm sending the raw FTP commands (like "DELE") for the transfer/deletion of files. For e.gsendLine("DELE " + filename); private void sendLine(String line) throws IOException { if (socket == null)...
6 Dec 2011 by TorstenH.
The joyful world of FTP-Commands[^]The command for deleting a folder (better known as directory) is "rmdir".You might have to check for the rights - but that's similar handled as on the files.
23 Dec 2011 by gardiann
hi there,i wonder to create server client side a ftp server. i try to implement with sockets . there are client and server side. i created 21. port in client side and wait a client to access. the client side enter 127.0.0.1 and port number 21 then access server. My question is that how can i...
24 Dec 2011 by RaviRanjanKr
Go through this link-[Java FTP client libraries reviewed][^]and this link[^] for to learn also how to use ftp client/server works
13 Jan 2012 by Arun Ashok
I am getting an error while i run the code below. This happens when only i run the exe on a Win XP machine. For WIN-7, it is working fine.private bool GetFileSize(FileInfo targetFI, long FileUploadedSize, string g_Subdivision,TMWaitDialog tmwaitdialog) { FtpWebRequest...
13 Jan 2012 by manognya kota
Hi,Few queries:1.Are the 2 systems different? 2.Did you check whether the system has access permission for that FTP site?
16 Jan 2012 by Arun Ashok
Hi All,The problem was not because of the permissions. The ftp site is having permissions for read/write etc.I scanned the ftp site with a virus scanner and, the code is working with both Win 7 and Win XP. So I searched for the root cause of the problem and I found that the, error is...
28 Jan 2012 by Slacker007
If "Success" is returning a "0" then I would look at your FtpPutFile() function and I would look at the transfer parameter. It doesn't look like this:MSDN - FtpPutFile()[^]Try using the values listed in this page link and see what happens. Just a thought.Good luck, Dave!
30 Jan 2012 by Member 8112150
Hi,i have written the code below to download files from the FTP Server.DWORD FTPImport::ImportAllFiles ( const CString& csSource_i, CString& csDestination_o ) { HINTERNET hInternet; HINTERNET hConnect; try { // Open the FTP...
15 Feb 2012 by hansoctantan
hey guys, I created a program that downloads a file from FTP ServerIt reads the current date from FTP and download it if its not found in download directory. It runs fine when the program downloads a small file(5 MB below - this is the size of a file that I've seen in download directory) but...
13 Feb 2012 by Christian Graus
Here is a list of properties you may like to set to see if they help you:request.Timeout = 10000request.ReadWriteTimeout = 10000request.KeepAlive = Falserequest.UseBinary = TrueNot saying these are the right settings, just that they are settings you should play with. I think the...
14 Feb 2012 by Member 8089914
Please tell me how to upload a XML file using FTP in c#? Im currently using FtpWebRequest method and its giving me The remote server returned an error: (553) File name not allowed. in Stream reqStream = request.GetRequestStream(); linemy code is//Create FTP requestFtpWebRequest request...
22 Feb 2012 by Member 8341991
Alright. I have my application watching my desktop, pictures, music, and document folders. I have seen examples of ftp similar to this:Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim request As System.Net.FtpWebRequest =...
22 Feb 2012 by Sergey Alexandrovich Kryukov
Unlike file systems, FTP does not support notifications.To implement the feature you want on some host running an FTP server, you would need to develop a special notification service. This service should work on the publisher-subscriber model...
23 Feb 2012 by Member 8341991
The application is going to be a .net desktop application, that can upload the changed file onto the ftp server. The server runs Linux. It's with dreamhost.comI was planning on using the system.io.filesystemwatcher, my problem is that I dont know how to change the ftp portion of my code to work...