You should check the reply code as Niklas suggested but, besides this,
we usually suggest that the client rename the file after successfully
uploading it - ideally it would also check the MD5 sum of the
transferred file prior to this name change.
2010/3/18 Niklas Gustavsson
I've got a custom ( looks very much like the native one atm) filesystem
implemented. Now I am wondering how to make the server use it. Figure I have
to call setFileSystem() in FileSystemFactory somehow. Help? :)
-Original Message-
From: Kenneth Vanvik Hansen [mailto:kvhan...@online.no]
2010/3/19 Kenneth Vanvik Hansen kvhan...@online.no:
I've got a custom ( looks very much like the native one atm) filesystem
implemented. Now I am wondering how to make the server use it. Figure I have
to call setFileSystem() in FileSystemFactory somehow. Help? :)
You should create your own
Yes, in theory, an FTP client should send an ABORt command to hint the
server that it is aborting the previous operation, if any is in
progress. As you said, not all FTP clients do this or all FTP servers
handle the ABORt command in a good way. If the client just closes the
data socket when you
On Fri, Mar 19, 2010 at 11:42 AM, David Latorre dvl...@gmail.com wrote:
You should create your own FileSystemFactory and set it in the
DefaultFtpServerContext like this:
context.setFileSystemManager(filesystemFactory);
Or you can set it on the FtpServerFactory. Or, you can configure it as
a
On Fri, Mar 19, 2010 at 2:36 PM, Sébastien Roy s...@okiok.com wrote:
I'm taking good notes of what you are proposing. I don't have control on the
FTP client side so it's hard for me to ask the client to rename the file
after a successful upload. I also already verify the REPLY code and it
Thanks, got it running. Now i'm trying to make it look for files in a db
table called FTPTEST. But no matter what I do it returns:
Java.io.FileNotFoundException: res\home\kenneth (Access is denied)
I created a file from a blob and returned it in getFile(), but how am I
supposed to make it LIST
Kenneth are you using JPA or can use JPA? I have this implemented in
JPA and I could send you the files but they are not clean in that they
reference tables in my database, etc. From the files, you could extract
what you need, however. Or probably by Monday, I could have this
cleaned up
i am also interested
/Robin
On Fri, Mar 19, 2010 at 9:23 AM, Kenneth Vanvik Hansen
kvhan...@online.nowrote:
Not using JPA at the moment, but i probably could if i wanted to. If you
could send me the files it might save me a lot of work. Using an Oracle
database, but I could probably make
Give me a few hours and I will get the files together and provide them.
It turns out, I was not using JPA in the FTP side of things but put a
JPA interface on top of the database side to allow my web application to
provide an easy interface to list what was in the storage, delete files,
etc.
10 matches
Mail list logo