Aller au contenu principal

RequestBodyAsFile

Structure

RequestBodyAsFile(sFileName)

Parameters

| Parameter | Type | Description
| sFileName | String | the file name that will be used to save the message body to the IndySoft Temp directory. This value should be simply a file name + extension, not a full directory location. |

Return Value

String

Description

Use this function to save the message body in the Web Packet request as a file to the IndySoft Temp directory. This value is only appropriate if the content-type of the web request is non-text-based. Tip: to see the message body size for an actual web request, turn on 'Log All Requests' before turning on the IndySoft REST Server, then check the log of a web request in the 'History / Status' grid in IndySoftSyncOptions utility.

Example

sFileName = "MessageBody.pdf"

if RequestBodyAsFile(sFileName) then

sFileNowAt = GetIndySoftTempDir & sFileName

End If |