Getting Started

Filestack Architecture

File Upload

File Export (Save To)

Responsive Images

Image Transformations

Document Transformations

Video Transcoding

Audio Transcoding





Filestack Viewer


Supported Cloud Drives

Filestack Recipes

Filestack Integrations

Filestack SDKs

Register for an API key

WEBDAV Integration

Web Distributed Authoring and Versioning is an extension of the HTTP protocol and provides a method for creating, changing and moving files on a server. Work on WebDAV concluded in 2007. Today's operating systems often include built-in client-side support for WebDAV.

Current Worldwide Users: N/A

Uploads from the WEBDAV API support the following types of files:

Users can select files from WEBDAV that match these broad file type categories: All file types are selectable. This includes audio, video, image, text, office, and compressed archive files.

API OAUTH Webhooks

Using the WEBDAV API

  1. User selects WebDAV from services list
  2. user provides Hostname, Username, and Password
  3. user is connected and can select files from their WebDAV server in Filestack dialog

WEBDAV api upload widget

Upload to WEBDAV

Uploading or "picking" a file from WEBDAV in the context of Filestack means choosing a file and creating a distributable link to that file where it exists in WEBDAV. This is the Filestack URL that all "Pick" functions return. If you are using the pickAndStore method, then the file from WEBDAV is copied to a new storage location.

Sample Upload Code
filepicker.pick( { mimetypes: ['*/*'], services:['WEBDAV'], }, function(Blob){ console.log(replaceHtmlChars(JSON.stringify(Blob))); } );

Download to WEBDAV

Exporting a file to WEBDAV in the context of Filestack means saving a file from a url or Filestack Blob object to WEBDAV and creating a distributable link to that file where it exists in WEBDAV. This is the Filestack URL that the "export" function returns.

Sample Export Code
filepicker.exportFile( '', { mimetype:'*/*', suggestedFilename: 'newFile', services: ['WEBDAV'] }, function(Blob){ console.log(Blob.url); } );

Sample Image Conversion Code for WEBDAV

If you have a Filestack Blob object or Filestack URL, then you can use the Filestack REST or Javascript APIs to convert office documents and image files. In the sample code below we "pick" an image file from WEBDAV and use the Javascript API convert method to resize the image to 400w by 400h in pixels.

Sample Conversion Code
filepicker.pick( { services: ['WEBDAV'], mimetype: 'image/*', }, function(pickedBlob){ console.log("Conversion in progress...") filepicker.convert( pickedBlob, { width: 400, height: 400, }, { location: 'S3' }, function(convertedBlob){ console.log("Converted file url: ", convertedBlob.url); console.log("File is stored under your S3: ", convertedBlob.key); filepicker.remove( pickedBlob, function(){ console.log("Removed"); } ); } ); } );

Combining Filestack Functions for WEBDAV

Now let's combine these methods and see what you can achieve with Filestack and WEBDAV! Here we pick an image from WEBDAV, crop and resize it, then save it back into WEBDAV.

Sample Multi-Function Code
filepicker.pick( { services: ['WEBDAV'], mimetype: 'image/*', }, function (Blob) { filepicker.convert( Blob, { width: 300, height: 300, crop_first: true }, function (converted_Blob) { filepicker.exportFile(converted_Blob.url, { services: ['WEBDAV'], mimetype: Blob.mimetype, suggestedFilename: 'converted_' + Blob.filename }, function (exported_Blob) { console.log('File successfully saved!'); }); }); });

Create your own WEBDAV OAuth application to Connect to Filestack:

By default, you do not need to configure anything to start uploading files from WEBDAV, Filestack is ready to go out of the box. When a user logs into their WEBDAV account from your site, the Filestack company application will show up. You can configure it so that your application shows up instead in order to make a more seamless experience for your customers. Click here to learn : Custom OAuth Applications for WebDAV are currently not supported in Filestack.

WEBDAV Webhooks for Your Application

You can be notified about all file uploads and conversions from all cloud services Filestack connects to. This includes WEBDAV. Follow this link to find out more about how to use Filestack's WEBDAV webhooks.

Here are some examples of the webhooks for uploads from WEBDAV:

File Upload (symlink):

File Upload (with store):

File Export (save to):
  "action": "fp.export",
  "timestamp": 1444257665,
  "id": 142447,
    "source": "",
    "client": "WEBDAV",
    "filename": "newFiletest.jpg",
    "created": ""