Whisperstream Research Group - CommLib Documentation

Http.AddPostFile Method 

Posts a file to url, any file IO exceptions may also be thrown

public void AddPostFile(
   string key,
   string filename
);

Parameters

key
the key which will reference the file data
filename
the filename of the file

Remarks

PostMode must be PostModeContent.Multipart_FormData to use this method

Exceptions

Exception TypeCondition
ArgumentExceptionthrown if PostMode != PostModeContent.Multipart_FormData
FileNotFoundExceptionthrown if the filename is not valid

See Also

Http Class | Whisperstream.CommLib.HttpLib Namespace