This project is read-only.
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 4, 2011 at 12:42 AM by VikingErik
Updated in commit 6662.

comments

VikingErik wrote Jan 27, 2011 at 5:47 PM

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

wrote Apr 4, 2011 at 12:42 AM

wrote Feb 14, 2013 at 12:21 AM

wrote May 16, 2013 at 5:53 AM