Fix for file downloads from the platform