Gist - fixes for file content structure on upload