ownCloud Chunking NG Part 2: Announcing an Upload

The first part of this little blog series explained the basic operations of chunk file upload as we set it up for discussion. This part goes a bit beyond and talks about an addition to that, called announcing the upload. With the processing described in the first part of the blog, the upload is done savely and with a clean approach, but it also has some drawbacks. Most notably the server does not know the target filename of the uploaded file upfront. Also it does not know the final size or mimetype of the target file. That is not a problem in general, but imagine the following situation: A big file should be uploaded, which would exceed the users quota. That would only become an error for the user once all uploads happened, and the final upload directory is going to be moved on the final file name. ...

July 10, 2015 · 2 min · 338 words · Me