RequestPartAdd

Associates data or file, as part of an HTTP multipart request, with an HTTP Session

  • Stored Procedure
  • SQL Server Compatibility: 2008, 2012, 2014, 2016, 2017

Syntax:

EXEC SQLHTTP.net.RequestPartAdd @HttpSessionID, @Key, @Value, [@IsFile], [@IsPathToFile]

Arguments:

 

Name Type Description
@HttpSessionID uniqueidentifier Required. This value is obtained via the HttpSession stored procedure
@Key nvarchar(400) Required. The name attribute in “Content-Disposition: form-data; name…”
@Value nvarchar(MAX) Required. Data, file content, or path to a file to be uploaded
@IsFile bit Optional. Indicates whether @Value contains the content of a file.
Default: 0 (false)
@IsPathToFile bit Optional. Indicates whether @Value contains a path to a file to be uploaded.
Default: 0 (false)

Sample Usage:

See the following implementation of multiparts containing a file upload from our API Library

See Also: