Use Raw FTP commands to upload file


I need to upload a file using Raw FTP commands in my program. I got downloading to work using RETR, but how do I upload?



You need the STOR command for that. You will also need PORT or PASV with STOR to make it work.


I got the answer..You have to use the STOR command followed by the file. F.e. "STOR test.txt"


  • Windows explorer hangs up FTP connection after PASV command
  • Batch Windows 7 - Upload directory and files to FTP
  • Checking if URL exists - HTTP Request always returns an exception
  • PDF file damaged after upload but local copy is fine. How could this be happening? [closed]
  • Is there a list of URL schemes?
  • how to create a downloadable csv file in appengine
  • WCF hosting issues
  • Memory usage and time for execution for another process using C#?
  • FTPWebRequest .NET 3.5 vs 4
  • Laravel lmutator $this->attributes return 'Undefined index: id'
  • How to remove single character words from string with preg_replace
  • dismiss Progress Dialog in another Activity … Android
  • Recreate the Oracle DUAL table
  • How to set an entity field that does not exist on the table but does exists in the raw SQL as an ali
  • How dotnet build chooses the output name
  • Count from each distinct date, fill in missing dates with zero
  • Can you pass an array from javascript to asp.net mvc controller action without using a form?
  • Using Generics on right hand side in Java 6?
  • nodemcu custom firmware build problems
  • perl, mysql - fasting way to upload a csv file into mysql?
  • Memory error in python- how to use more memory
  • Differences in dis-assembled C code of GCC and Borland?
  • converting text file into xml using php?
  • How to Cache Real-time Data?
  • azure media services - The request body is too large and exceeds the maximum permissible limit
  • Read a local file using javascript
  • Algorithm for a smudge tool?
  • Jquery - Jquery Wysiwyg return html as a string
  • R: gsub and capture
  • jqPlot EnhancedLegendRenderer plugin does not toggle series for Pie charts
  • Run Powershell script from inside other Powershell script with dynamic redirection to file
  • Arrays break string types in Julia
  • Comma separated Values
  • WPF Applying a trigger on binding failure
  • Load html files in TinyMce
  • How can I get HTML syntax highlighting in my editor for CakePHP?
  • coudnt use logback because of log4j
  • Java static initializers and reflection
  • Checking variable from a different class in C#
  • How to load view controller without button in storyboard?