Hello, I'm not aware of any existing Javascript library but I thought about writing one at some point (server-side JS, not browser JS). Something like https://github.com/PVince81/pyocclient but for Javascript.
If QML's JS supports XMLHttpRequest it should be possible to write a generic library based on such calls (goal would be to make it work with QML, Node JS and later browsers) At some point I remember researching QML + Python (for writing a KDE plasmoid) but I'm not sure they work together very well. Cheers, Vincent On 11/17/2014 05:11 PM, Daniel Holm wrote: > Hello everyone, > > I'm, together with a team of five, developing a ownCloud integration > service and application for Ubuntu Touch. > > The project contains of two parts: > 1. A account provider and multiple services (contacts, calendar, files) > 2. The app - browser of files and such. > > The app is, right now, just a WebView showing the actual web page of > the OC instance. > That works fine, whle usig OC7 and we might make it use WebDAV further > in the future. > > Now, we want to upload files to the OC instance. I was thinking of > using a cURL library in JavaaScript and upload using something like: > curl -X PUT -u username:password > "http://yourserver.com/owncloud/remote.php/webdav/file.zip" -F > myfile=@"/Users/Javi/Downloads/file.zip" > > But I just wanted to ask: Is there an easier way of uploading files? > > Our app uses QML and JavaScript ONLY. > > Every time I seach for ownCloud and API I find like ShareAPI, which is > for existing files in the cloud, and API for creating apps for the > actual ownCloud web service. Correct me if I am wrong. > > Any help would be highly appreciated. > > I have no Android or iOS development experiance and am completely > unable to understand any of that code. But I understand that the > Android app has it's own library. > > Project: https://launchpad.net/owncloud-app > > Yours sincerely, > Daniel HolmHello everyone, > > I'm, together with a team of five, developing a ownCloud integration > service and application for Ubuntu Touch. > > The project contains of two parts: > 1. A account provider and multiple services (contacts, calendar, files) > 2. The app - browser of files and such. > > The app is, right now, just a WebView showing the actual web page of > the OC instance. > That works fine, whle usig OC7 and we might make it use WebDAV further > in the future. > > Now, we want to upload files to the OC instance. I was thinking of > using a cURL library in JavaaScript and upload using something like: > curl -X PUT -u username:password > "http://yourserver.com/owncloud/remote.php/webdav/file.zip" -F > myfile=@"/Users/Javi/Downloads/file.zip" > > But I just wanted to ask: Is there an easier way of uploading files? > > Our app uses QML and JavaScript ONLY. > > Every time I seach for ownCloud and API I find like ShareAPI, which is > for existing files in the cloud, and API for creating apps for the > actual ownCloud web service. Correct me if I am wrong. > > Any help would be highly appreciated. > > I have no Android or iOS development experiance and am completely > unable to understand any of that code. But I understand that the > Android app has it's own library. > > Project: https://launchpad.net/owncloud-app > > Yours sincerely, > Daniel Holm > > > > _______________________________________________ > Devel mailing list > [email protected] > http://mailman.owncloud.org/mailman/listinfo/devel
_______________________________________________ Devel mailing list [email protected] http://mailman.owncloud.org/mailman/listinfo/devel
