1

Closed

ResumableFileResult constructor bug

description

The constructor that accepts a content type is incorrect and fails to set the mediaFile.
 
I have rewritten it as:
 
    public ResumableFileResult(ResumableDownloadRequest resumableDownloadRequest, FileInfo mediaFile, string contentType)
        : base(resumableDownloadRequest, contentType)
    {
        MediaFile = mediaFile;
    }
 
    public ResumableFileResult(ResumableDownloadRequest resumableDownloadRequest, FileInfo mediaFile)
        : this(resumableDownloadRequest, mediaFile,  GetMIMEType(mediaFile.Extension.ToLower()))
    {
    }
Closed Apr 3, 2011 at 11:42 PM by VikingErik
Updated in commit 6662.

comments

VikingErik wrote Jan 27, 2011 at 4:47 PM

Thanks! I'll incorporate it into the source and push a new version this evening.

wrote Apr 3, 2011 at 11:42 PM

wrote Feb 13, 2013 at 11:21 PM

wrote May 16, 2013 at 4:53 AM