Improved upload and download processing.