public SerialisedPostedFileInfo(HttpPostedFile postedFile) : base(postedFile.InputStream, postedFile.PostedFileInfo()) { fileContentType = postedFile.PostedFileInfo().GetFileContentType(); if (fileContentType == null) { fileContentType = new ContentAndFileType() { ContentType = postedFile.ContentType, EFileType = EFileType.Document, }; } length = postedFile.ContentLength; }