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.
perl HTTP::DAV module
perl Crypt::SSLeay module (for HTPPS uploads support)
apt-get install libhttp-dav-perl
apt-get install libcrypt-ssleay-perl # for HTTPS uploads support
cpan
cpan> install HTTP::DAV
for HTTPS uploads support:
cpan> install Crypt::SSLeay
- 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
- 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