Issue #1835026 by Jorrit: Fixed uploading files to S3 while the private file system is active and using an absolute path. Part 2: fixed downloading thumbnails.