You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Amrit Verma (JIRA)" <ji...@apache.org> on 2014/06/12 13:49:02 UTC

[jira] [Commented] (SLING-3661) ftp server should support resumable file uploads

    [ https://issues.apache.org/jira/browse/SLING-3661?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14029068#comment-14029068 ] 

Amrit Verma commented on SLING-3661:
------------------------------------

One way to solve this could be to merge the input streams from existing node (which contains partial content) and from client (which contains new data) and write the data into new file. After that we could read data from new file, put it back to old file and delete the new file. Attached a patch for this approach.

> ftp server should support resumable file uploads
> ------------------------------------------------
>
>                 Key: SLING-3661
>                 URL: https://issues.apache.org/jira/browse/SLING-3661
>             Project: Sling
>          Issue Type: Improvement
>          Components: Extensions
>            Reporter: Amrit Verma
>         Attachments: resumeUploadDiff.txt
>
>
> The ftp server should support resuming file uploads.
> Steps:
> 1. Connect to ftp server and start file upload.
> 2. Terminate file upload in the middle.
> 3. Try resuming the upload.
> Issue: The server sends 551 error code. It only supports overwriting the existing file.



--
This message was sent by Atlassian JIRA
(v6.2#6252)