public FormData(HttpUpload value)
 {
     UploadValue = value;
 }
 public FormData(HttpUpload value)
 {
     UploadValue = value;
 }
        public HttpUpload ToHttpUpload()
        {
            var upload = new HttpUpload()
            {
                Name = Name,
                Filename = Filename,
            };

            if (Text != null)
            {
                upload.Stream = new MemoryStream(Encoding.UTF8.GetBytes(Text));
            }
            else
            {
                upload.Stream = File.OpenRead(Filename);
            }

            return upload;
        }