• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

FTP upload with Commons.net got exception

 
mandlar suurla
Ranch Hand
Posts: 67
Debian Linux PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Problem is here when i am trying to upload it gives me exception



 
mandlar suurla
Ranch Hand
Posts: 67
Debian Linux PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dont look the first if statement block i use the second one, plain file upload.
 
Joe Ess
Bartender
Posts: 9312
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you ever check the return code from the connect or invoke disconnect() like it tells you to do in the javadoc?
 
mandlar suurla
Ranch Hand
Posts: 67
Debian Linux PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no, but i will do that. Yeah the problem answer is really easy, my friend, google helped me out got this article http://cephas.net/blog/2004/05/27/commons-net-ftp-and-active-vs-pasv-connections/. But yes i dont know how the FTP really works, i used wiki but all the contents are so separated. Anyone has good guides for FTP, workflow with commands ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic