close copy file in UploadedFile::from_hash.