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.
- Download
- Install Deps
- Configure
- Install
- Tips
- TODO
$ git clone https://github.com/BorisMorel/DrupalWebdav.git
EzComponent implements all webdav methods
Download the latest stable version on : http://ezcomponents.org/download
$ tar xvjf ezcomponents-x-x.tar.bz2
mkdir DrupalWebdav/vendors/ezcomponents/
cp -r ezcomponents-x-x/Webdav ezcomponents-x-x/autoload ezcomponents-x-x/Base DrupalWebdav/vendors/ezcomponents/
You can define the default node for the webdav entrypoint. ( eq : DocumentRoot ).
Edit DrupalWebdav/davsrv.module
<?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.
<?php
// davsrv.module
define("DOCUMENT_ROOT", '/');
$router = new Router();
$router->setRootCollection(array('sharing', 'partage'));
Note:
sharing
and partage
MUST exist into Drupal7 node_type.
Just go into Drupal web interface. Choose modules
menu and install dav server.
You can check the file extensions.
<?php
// davsrv.module
$backend = Backend::getInstance()
->setExtensionCheck()
;
If Drupal file_upload field configuration restrict the maximum number of files, I need to prevent the user when the limit is exceeded.