#!/usr/bin/env bash
for FILE in output/epubs/*
do
FILE_URL=$(sed "s/ /%20/g" <<< "${FILE##*/}")
curl -Ss -u "${USERNAME}":"${PASSWORD}" -T "${FILE}" "https://cloud.crystalyx.net/remote.php/dav/files/${USERNAME}/Public/TWI/${FILE_URL}"
done