[owncloud-devel] Problems with Chunked upload

Klaas Freitag freitag at owncloud.com
Wed Jun 24 07:34:27 GMT 2015


On 23.06.2015 18:06, RAHUL JAIN wrote:
> Hi,
> 
> Can you please share the demo of your code that you have used for chunk
> uploading. Might be we may miss something that is necessary for chunking.

Best would be if you could share a mitmproxy dump or a wireshark report
where we see the http requests that go back and forth. That way we can
see whats going wrong.

Klaas


> 
> On Jun 23, 2015 1:31 AM, "Hans-Helge Bürger" <h.buerger at inpsyde.com
> <mailto:h.buerger at inpsyde.com>> wrote:
> 
>     Unfortunately, my chunk upload is also not working. Magic Files also
>     don’t work for me. I have the problem, that a new file is created
>     with the chunk-file-name but each file hast no content (so size 0
>     bytes). That is totally weird :(
> 
>     *Hans-Helge Bürger*
>     /WordPress Engineer/
> 
>     Telefon: +49 2202 817 90-27
>     Fax: +49 2202 817 90-99
>     E-Mail: h.buerger at inpsyde.com <mailto:h.buerger at inpsyde.com>
>     GnuPG keygen: h.buerger at inpsyde.com.asc
>     <http://pgp.mit.edu/pks/lookup?op=get&search=0xA6AAD494C4B32F1C>
> 
>     <http://mailto:h.buerger@inpsyde.com>
> 
>     *Inpsyde GmbH*
>     Mutzer Heide 3
>     51467 Bergisch Gladbach
> 
>     Amtsgericht Köln HRB 65224
>     Steueridentnr.: DE263849534
>     Geschäftsführer: Heinz Rohé
> 
>     http://inpsyde.com
>     http://wpde.org
>     http://edupress.de
>     http://marketpress.com
> 
> 
>     Am 20. Juni 2015 bei 15:15:37, rahuljain840 (rahuljain840 at gmail.com
>     <mailto:rahuljain840 at gmail.com>) schrieb:
> 
>>     Hi Hans-Helge Burger,
>>
>>     Did you get the solution for file upload. I have tried each and
>>     everything suggested in forum and everywhere but didn't get
>>     success. The problem that i faced is that each time my chunk is
>>     submitted as a file and overwrite the previous chunk. Even i can
>>     download the chunk with the version history. It seems like magic
>>     file doesn't work and It doesn't understand the chunk request. If
>>     you have the solution Kindly share. 
>>
>>     Thanks in advance. 
>>
>>     On Mon, Jun 15, 2015 at 1:05 PM, Hans-Helge Bürger [via ownCloud]
>>     <[hidden email]
>>     <http:///user/SendEmail.jtp?type=node&node=15294&i=0>> wrote:
>>
>>         I just took a look at the owncloud client and first
>>         impression: There are a lot of things done which are never
>>         mentioned before. However my client still does not work. But I
>>         have some questions you hopefully can answer :)
>>
>>         1. etag
>>
>>         The specs
>>         (https://github.com/owncloud/core/wiki/spec:-big-file-chunking) mentions
>>         etags at the end. With each response of a chunk I get a new
>>         etag. The client checks for that
>>         (https://github.com/owncloud/client/blob/master/src%2Flibsync%2Fpropagateupload.cpp#L439)
>>         but this did not work for me so far. So my question. Is it a
>>         bad thing that I get etags returned and do I need If-Match in
>>         my header?
>>
>>         2. X-OC-MTIME
>>
>>         I saw some clients using X-OC-MTIME as header. What does this
>>         header mean?
>>         https://github.com/owncloud/client/blob/master/src%2Flibsync%2Fpropagateupload.cpp#L426
>>
>>         3. Checksum
>>
>>         The owncloud client also adds a checksum to the last request.
>>         Is this necessary? If yes how do I calculate that?
>>         https://github.com/owncloud/client/blob/master/src%2Flibsync%2Fpropagateupload.cpp#L468
>>
>>
>>         *Hans-Helge Bürger*
>>         /WordPress Engineer/
>>
>>         Telefon: +49 1579 2349 527
>>         E-Mail: [hidden email]
>>         <http:///user/SendEmail.jtp?type=node&node=15263&i=0>
>>         GnuPG keygen: h.buerger at ...
>>         <http://pgp.mit.edu/pks/lookup?op=get&search=0xA6AAD494C4B32F1C>
>>
>>         <http://mailto:h.buerger@inpsyde.com>
>>
>>         *Inpsyde GmbH*
>>         Mutzer Heide 3
>>         51467 Bergisch Gladbach
>>
>>         Amtsgericht Köln HRB 65224
>>         Steueridentnr.: DE263849534
>>         Geschäftsführer: Heinz Rohé
>>
>>         http://inpsyde.com
>>         http://wpde.org
>>         http://edupress.de
>>         http://marketpress.com
>>         http://multilingualpress.profile <http://multilingualpress.pro>
>>
>>
>>         Am 12. Juni 2015 bei 15:16:34, Markus Goetz ([hidden email]
>>         <http:///user/SendEmail.jtp?type=node&node=15263&i=1>) schrieb:
>>
>>>         On 11/06/15 14:18, Klaas Freitag wrote:
>>>         >
>>>         > If that is not complete, please refer to the sources available in
>>>         > github.com/owncloud/client
>>>         <http://github.com/owncloud/client> or pyocclient and help
>>>         extending the docs.
>>>         ... direct link to the relevant file:
>>>         http://code.woboq.org/owncloud/client/src/libsync/propagateupload.cpp.html#389
>>>
>>>         --
>>>         Woboq GmbH | http://woboq.com/
>>>         Geschäftsführer: Markus Goetz, Olivier Goffart
>>>         Hermannstr. 134, 12051 Berlin, Germany
>>>         Handelsregister: Amtsgericht Berlin (Charlottenburg) HRB 137795
>>>
>>>         _______________________________________________
>>>         Devel mailing list
>>>         [hidden email]
>>>         <http:///user/SendEmail.jtp?type=node&node=15263&i=2>
>>>         http://mailman.owncloud.org/mailman/listinfo/devel
>>
>>         _______________________________________________
>>         Devel mailing list
>>         [hidden email]
>>         <http:///user/SendEmail.jtp?type=node&node=15263&i=3>
>>         http://mailman.owncloud.org/mailman/listinfo/devel
>>
>>
>>         ------------------------------------------------------------------------
>>         If you reply to this email, your message will be added to the
>>         discussion below:
>>         http://owncloud.10557.n7.nabble.com/Problems-with-Chunked-upload-tp15106p15263.html
>>         To unsubscribe from Problems with Chunked upload, click here.
>>         NAML
>>         <http://owncloud.10557.n7.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>>
>>
>>     ------------------------------------------------------------------------
>>     View this message in context: Re: Problems with Chunked upload
>>     <http://owncloud.10557.n7.nabble.com/Problems-with-Chunked-upload-tp15106p15294.html>
>>     Sent from the Developers mailing list archive
>>     <http://owncloud.10557.n7.nabble.com/Developers-f11902.html> at
>>     Nabble.com.
>>     _______________________________________________
>>     Devel mailing list
>>     Devel at owncloud.org <mailto:Devel at owncloud.org>
>>     http://mailman.owncloud.org/mailman/listinfo/devel
> 
>     _______________________________________________
>     Devel mailing list
>     Devel at owncloud.org <mailto:Devel at owncloud.org>
>     http://mailman.owncloud.org/mailman/listinfo/devel
> 
> 
> 
> _______________________________________________
> Devel mailing list
> Devel at owncloud.org
> http://mailman.owncloud.org/mailman/listinfo/devel
> 



More information about the Devel mailing list