Skip to content

BorisMorel/DrupalWebdav

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Webdav server for Drupal

DrupalWebdav provide a webdav sharing integrated with Drupal7. With this, you upload directly the files from a sharing. You can use this module to manage your files.

Install

  1. Download
  2. Install Deps
  3. Configure
  4. Install
  5. Tips
  6. TODO

Get the module

$ git clone https://github.com/BorisMorel/DrupalWebdav.git

Install the dependencies

Ezcomponent

EzComponent implements all webdav methods

Download the latest stable version on : http://ezcomponents.org/download
Extract
$ tar xvjf ezcomponents-x-x.tar.bz2
Copy folders to DrupalWebdav/vendors
mkdir DrupalWebdav/vendors/ezcomponents/
cp -r ezcomponents-x-x/Webdav ezcomponents-x-x/autoload ezcomponents-x-x/Base DrupalWebdav/vendors/ezcomponents/

Configure DrupalWebdav module

You can define the default node for the webdav entrypoint. ( eq : DocumentRoot ).

Edit DrupalWebdav/davsrv.module

Fixed entrypoint

<?php
// davsrv.module

define("DOCUMENT_ROOT", '/sharing');

Note: sharing is the name of my drupal node_type. You MUST define this node into Drupal and you MUST add a file_upload field.

Many entrypoints

<?php 
// davsrv.module

define("DOCUMENT_ROOT", '/');

$router = new Router();
$router->setRootCollection(array('sharing', 'partage'));

Note: sharing and partage MUST exist into Drupal7 node_type.

Install into Drupal7

Just go into Drupal web interface. Choose modules menu and install dav server.

Tips

You can check the file extensions.

<?php
// davsrv.module

$backend = Backend::getInstance()
    ->setExtensionCheck()
    ;

TODO

If Drupal file_upload field configuration restrict the maximum number of files, I need to prevent the user when the limit is exceeded.

About

Provide a webdav access for Drupal 7 to share files.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages