Improved support for CSV, JPEG, PDF, PNG, PPTX, TIFF, Word, XLSX, and zip items in gallery