Re: Doubt on partial files

2014-03-24 Thread Niklas Gustavsson
On Sun, Mar 23, 2014 at 8:59 PM, Edson Richter edsonrich...@hotmail.com wrote:
 I saw there is an example to download files from database using FTPlet.
 In features says it can be configured to store either in filesystem and in
 database.
 There are standard configuration to store in database, or should all be
 implemented based on FTPlets?
 Is there complete example for all-in-database based FTP server?

For such a thing, a custom file system in FtpServer is likely a better
option. Should be fairly straight forward if you don't have any odd
requirements on the schema.

/niklas


Re: Doubt on partial files

2014-03-24 Thread Stefan Rönisch
Hi, is there a change to distinguish an incomplete transfer and a 
complete one on server side, generally?
http://dict.leo.org/ende/index_de.html#/search=distinguishsearchLoc=0resultOrder=basicmultiwordShowSingle=onAs 
far as I know a ftp client opens the data channel for uploading a file 
(passiv mode).

The ftp client signals the end of data transfer by closing the data channel.
But there is no check, if the file is complete!!!

Some ftp clients like filezilla support to abort an active file transfer 
by just closing the data channel.


So there is no chance to distinguish an incomplete transfer and a 
complete one on server side, am I right?


For that reason you need an additional acknowledgment from the client.
For example the client could transfer a file with extentsion '.tmp' an 
rename it, if it's transfered completely.

Right?

Stefan

Am 24.03.2014 09:07, schrieb Niklas Gustavsson:

On Sun, Mar 23, 2014 at 8:59 PM, Edson Richter edsonrich...@hotmail.com wrote:

I saw there is an example to download files from database using FTPlet.
In features says it can be configured to store either in filesystem and in
database.
There are standard configuration to store in database, or should all be
implemented based on FTPlets?
Is there complete example for all-in-database based FTP server?

For such a thing, a custom file system in FtpServer is likely a better
option. Should be fairly straight forward if you don't have any odd
requirements on the schema.

/niklas




Re: Doubt on partial files

2014-03-24 Thread Niklas Gustavsson
On Mon, Mar 24, 2014 at 10:37 AM, Stefan Rönisch sroeni...@axway.com wrote:
 Hi, is there a change to distinguish an incomplete transfer and a complete
 one on server side, generally?
 http://dict.leo.org/ende/index_de.html#/search=distinguishsearchLoc=0resultOrder=basicmultiwordShowSingle=onAs
 far as I know a ftp client opens the data channel for uploading a file
 (passiv mode).
 The ftp client signals the end of data transfer by closing the data channel.
 But there is no check, if the file is complete!!!

 Some ftp clients like filezilla support to abort an active file transfer by
 just closing the data channel.

 So there is no chance to distinguish an incomplete transfer and a complete
 one on server side, am I right?

 For that reason you need an additional acknowledgment from the client.
 For example the client could transfer a file with extentsion '.tmp' an
 rename it, if it's transfered completely.
 Right?

All correct.

/niklas


Re: Doubt on partial files

2014-03-22 Thread David Latorre
Hello Edson,

Even though you might achieve that by using a FTPlet, I think a better
solution is that the Ftp client itself renames the file after a successful
upload.
El 22/03/2014 19:06, Edson Richter edsonrich...@hotmail.com escribió:

 Hi!

 I'm new on FTP Server project, and after reading documentation I could not
 find if there is a option to deal with partial uploads.
 What I would like to do is that received files keep extension .tmp or
 .partial until finished.
 For example:

 client send file meuarquivodedados.dat
 ftp server start received file with name meuarquivodedados.dat.tmp or
 meuarquivodedados.dat.partial
 client finish sending file normally
 ftp server renames file from meuarquivodedados.dat.tmp to
 meuarquivodedados.dat

 Is there a option for that?

 Other option I'm evaluating is to use a database server as repository, and
 then set a flag as complete when finished.

 Any guidance on that? Please, consider me a complete novice in this topic
 (some FTP, SFTP and Linux knowledge, but little - to none - Apache FTP
 Server knowledge so far), ok?

 Thanks,
 --

 *Edson Carlos Ericksson Richter*
 /Sistemas para Bibliotecas, Escolinhas Infantis
 Projetos sob medida para sua empresa/
 Celular:(51) 9318-9766
 (51) 8585-0796
 /A mente que se abre a uma nova ideia jamais voltará ao seu tamanho
 original/
 - Albert Einstein