Hi Niklas, Thank you very much for the response. If you could consider the feature to read the file in transfer from an Ftplet, that definitely would be great help. If I wait till the user has uploaded the complete file, there is a possibility of multiple users doing the same file name. I hacked the sorcecode for IODataConnection.java and created an InputStream and am currently reading from it and closing the stream after read. It is working , but do you foresee any issue if I do it that way?
Thanks Ajith -----Original Message----- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Niklas Gustavsson Sent: Wednesday, May 23, 2007 3:06 PM To: ftpserver-dev@incubator.apache.org Subject: Re: Ftplet upload file question Hi Ajith First of all, sorry for the late respons! Janardhanan, Ajith (AJANARDH) wrote: > Now, I am sure this not the correct way to read such a file. The > Dataconnection object as obtained by > session.getDataConnection().openConnection() has a > transferFromClient() method, but I assume it transfers the whole file on to the server. Could you wait until the user has uploaded the complete file? If you could, you could use Ftplet.onUploadEnd() to read the file as created. If not, I'm not sure if it's possible to do using Ftplets as they currently work. Someone more experienced with Ftplets might be able to tell you more. However, reading the file in transfer from an Ftplet has been requested before. I got it on my todo to look into in the near future. Please tell me if this would indeed help you and I could increase it's priority. /niklas