Last updated
Last updated
West-Life File picker and Upload-Dir picker components return URL capable of WEBDAV API which doesn't need any other type of authentication. Use this URL as confidential as possible. WEBDAV is HTTP extension, it supports basic HTTP VERBS to download file ('GET'), upload file ('PUT'), delete file ('DELETE') as well as extension to list resources ('PROPFIND') in a directory or directories. It is possible to use WEBDAV capable client application to connect to the selected folder or download selected file. Following sections contains samples how to download or upload file to Virtual Folder using WEBDAV API using scripting or compiled languages. Full samples can be downloaded
bash:
python:
Prerequisite: install curl using your OS package manager yum install curl
or apt-get install curl
. cURL is command-line tool for transferring data using various protocols available as standard package in most OS.
Bash script to UPLOAD file to the webdav URL
Bash script to DOWNLOAD file from the webdav URL
Prerequisite:
for Python 2.x install easywebdav using your favorite packaging system(pip install easywebdav
)
for Python 3.x download easywebdav from .
Not yet verified. The following code uses XMLHTTPRequest API.
In preparation.
Standard class use used
HTTP Extensions for Web Distributed Authoring and Versioning (WebDAV):
XMLHttpRequest Living Standard:
easywebdav 1.2.0 A straight-forward WebDAV client, implemented using Requests
cURL,