JohnGray
JohnGray

Reputation: 676

Apache Sling resumable upload

I wonder, is there support for resumable file upload/download in Apache Sling.

I want to build web content repository system (based on JCR repository) with java client. Something similar to Dropbox and Google Drive. And it should be able to continue file transferring after network errors or user pause request.

And if there is no support for this, can someone suggest a solution for resumable file upload/download with JCR repository?

Upvotes: 1

Views: 793

Answers (2)

Alexander Klimetschek
Alexander Klimetschek

Reputation: 3714

There is currently (2013) an effort in Sling to add resumable uploads: https://issues.apache.org/jira/browse/SLING-2707

Upvotes: 2

Robert Munteanu
Robert Munteanu

Reputation: 68268

I don't think that there is resumable upload out-of-the-box in Sling - or any other Java framework by that matter. What I would do is split large files in chunks on the client and then upload them sequentially.

You can have a look at the ResumableHttpUploadTask - Apache 2 License for a pure HTTP, single-file approach.

Upvotes: 2

Related Questions