FIXED: Downloaded filename without + encoding

Jun 17, 2015 at 9:46 PM
I didn't like the + encoded replacements for spaces in my downloaded files.

I changed my DownloadFileResult.cs, ExecuteResult function, just below:
string fileNameEncoded = HttpUtility.UrlEncode(File.Name);

I added:
    // do NOT encode if only spaces were changed
            if (!fileNameEncoded.Contains("&")) // if we have this character &, then we need to maintain encoding.  If not, revert to original
                fileNameEncoded = File.Name;
Cheers,
Greg