Upload and share command line

expert
oc-internals

#1

I use owncloud to upload and share large files with colleagues over the web. I am attempting to script the sharing process for use with a local database of files. The script will (1) upload the file; and (2) share it.

I have used a version of this for the sharing part https://blog.alteroot.org/articles/2013-11-02/play-with-owncloud-share-api.html ...

but because limits imposed by my host, I am unable to upload files larger than 10MB using command line tools like cURL, and therefore can not easily script the upload process. The Desktop Client works fine, however, for syncing files.

I need a way check that a file is fully uploaded before sharing it. Is there a way to check -- either by scripting the client or by asking the server -- whether a file is uploaded before sharing it.