Sign in Join
FPDoc Onlineexperiment

TFPCustomHTTPClient.SimpleFileFormPost procedure

Member of TFPCustomHTTPClientpublicIn unit fpHTTPClient

Static method to perform a simple file upload form POST

Declaration

pascal
class procedure SimpleFileFormPost(const AURL: string; 
 const AFieldName: string; 
 const AFileName: string; 
 const Response: TStream)

Arguments

AURL

The URL to post the file form request to

AFieldName

The form field name for the file upload

AFileName

The filename of the file to upload

Response

Variable to store the response content as string

Description

Static utility method for performing a simple file upload form POST request without requiring an HTTP client instance. Uses multipart/form-data encoding for the file upload.

Errors

May raise HTTP-related exceptions on connection errors.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.