TFPCustomHTTPClient.FileFormPost procedure
Performs an HTTP POST request with file upload
Declaration
procedure FileFormPost(const AURL: string; const AFieldName: string;
const AFileName: string; const Response: TStream)
procedure FileFormPost(const AURL: string; FormData: TStrings;
AFieldName: string; AFileName: string;
const Response: TStream)Arguments
AURL | The URL to upload the file to |
AFieldName | The form field name for the file upload |
AFileName | The filename to upload |
Response | Variable to store the response content as string |
FormData | Additional form data to include with the file upload |
Description
Performs an HTTP POST request with file upload using multipart/form-data encoding. This method allows uploading files as part of a form submission.
Errors
May raise HTTP-related exceptions on connection errors or invalid responses.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
