/shutter-plugin-webdav

Shutter upload plugin based on WebDAV. Allows you to push images on WebDAV-enabled server from shutter in two clicks.

Primary LanguagePerlGNU General Public License v3.0GPL-3.0

shutter-plugin-webdav

Shutter upload plugin based on WebDAV. Allows you to push images on WebDAV-enabled server from Shutter in two clicks. Remote HTTP and HTTPS support.

Requirements (Shutter side)

perl HTTP::DAV module

perl Crypt::SSLeay module (for HTPPS uploads support)

via apt (Ubuntu / Debian)

apt-get install libhttp-dav-perl
apt-get install libcrypt-ssleay-perl # for HTTPS uploads support

via perl CPAN

cpan
cpan> install HTTP::DAV

for HTTPS uploads support:

cpan> install Crypt::SSLeay

Requirements (server side)

Ubuntu / Debian

  • enabled apache2 dav, dav_fs modules
a2enmod dav
a2enmod dav_fs
  • Configured WebDAV location
<Location /i>
        Order Allow,Deny
        Allow from all
        Dav On
        Options -Indexes

        AuthType Basic
        AuthName DAV
        AuthUserFile /var/www/i/.passwd

        <LimitExcept GET OPTIONS>
                Require user username
        </LimitExcept>
</Location>

and image directory:

mkdir -p /var/www/i
chown www-data /var/www/i

Installation

  • Fetch WebDAV.pm to Shutter's upload_plugins/upload directory
  • Adjust variables inside WebDAV.pm file (marked with # edit)
  • Restart Shutter
git clone https://github.com/djdb/shutter-plugin-webdav
sudo cp shutter-plugin-webdav/WebDAV.pm /usr/share/shutter/resources/system/upload_plugins/upload
sudo vim /usr/share/shutter/resources/system/upload_plugins/upload/WebDAV.pm