[#1730] Correctly release resources in MixedFileUpload after switching from Memory to Disk