Based on https://github.com/johnschimmel/itp-dwd-flask-s3-upload, few minor changes