I need my clients to upload files/folders in the NextCloud server using an Angular web page in my intranetwork.
So I have an intranetwork, an NextCloud server in this network and I want the hosts in this network to be able to upload files in the NextCloud server through an Angularjs web page.
How can i implement it?
Moved to “dev” category.
No reply here the next days? Better ask such questions on IRC.
Ideally you have a module or something that can handle webdav, then you can just put the files. Chunked upload is more difficult, they have done such a thing with python (they use the request library):
This file has been truncated.
# -*- coding: utf-8 -*-
# vim: expandtab shiftwidth=4 softtabstop=4
"""ownCloud client module
Makes it possible to access files on a remote ownCloud instance,
share them or access application attributes.
import xml.etree.ElementTree as ET
from six.moves.urllib import parse
There should be libraries for webdav in js as well (
https://github.com/sara-nl/js-webdav-client), in angular perhaps this one: https://angular.io/guide/http