[ 
https://issues.apache.org/activemq/browse/SM-889?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gert Vanthienen updated SM-889:
-------------------------------

    Attachment: SM-889.patch

This patch allows users to specify an attribute uploadSuffix="..." on the 
<ftp:sender /> endpoint.  This suffix will be appended to the file name during 
upload.  Upon completion, the file will be renamed to the correct name.

This attribute only works if a name has been specified for upload, otherwise it 
is ignored.

The patch also tries to solve a problem I have encountered with IIS/FTP.  If no 
data was actually transferred to the server (e.g. because of an already 
existing file name), the call to client.completePendingCommand() sometimes 
appeared to take a very long time (waiting for some kind of time-out).  With 
this patch, this call will only be issued if an OutputStream has actually been 
acquired.

> Add possibility to rename files after FTP upload
> ------------------------------------------------
>
>                 Key: SM-889
>                 URL: https://issues.apache.org/activemq/browse/SM-889
>             Project: ServiceMix
>          Issue Type: Improvement
>          Components: servicemix-ftp
>    Affects Versions: 3.1
>            Reporter: Gert Vanthienen
>            Priority: Minor
>             Fix For: 3.1.1, 3.2
>
>         Attachments: SM-889.patch
>
>
> Add the possibility to upload files to the FTP server using another suffix 
> (e.g. .part) and rename the file after the upload is completed.  This way, it 
> is possible for another process to determine when file upload has finished.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to