Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with Chunked upload #16278

Closed
obstschale opened this issue May 12, 2015 · 1 comment
Closed

Problems with Chunked upload #16278

obstschale opened this issue May 12, 2015 · 1 comment

Comments

@obstschale
Copy link

I don't know if that is the right place to ask, so if I'm wrong please tell me where I can ask my question :)

I currently try to build a WebDAV / ownlcoud client to upload some files. Because some files are large I figured that I need to use so called "chunking". However I could not find a real good tutorial / instruction how to implement such chunking. I found this page: spec: big-file-chunking but it does not really help.

So let me explain what I did so far and what questions I have:

I check for the filesize and if it is large than same predefined value I will chunk the data. I use PUT to upload each chunk and the chunks have the following name: <path/filename>-chunking-<transferid>-<chunkcount>-<index> like mentioned in the specs linked above.

I also set the following header types:

HTTP/1.1 206 Partial Content
Content-type: application/octet-stream
OC-Chunked: 1
Content-Range: bytes 0-499/1023
Transfer-Encoding: chunked

Each request is creates an empty file named like the chunk on my owncloud and each response of these PUTs request return 201 oder 204.

I also see that each response has their own ETag, but I read that this is not normal but I couldn't find out why this is.

Do you have any idea what I am doing wrong?

PS: I am running the latest owncloud version.

@karlitschek
Copy link
Contributor

Hi. I suggest to ask this question on the owncloud devel mailinglist. https://mailman.owncloud.org/mailman/listinfo/devel

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants