Merge "[FileRepo] Fixed regression where thumbnails could not be written to foreign...