Unit 'fpHTTPClient' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#fcl]

TFPCustomHTTPClient.SimpleFileFormPost

Static method to perform a simple file upload form POST

Declaration

Source position: fphttpclient.pp line 374

public class procedure TFPCustomHTTPClient.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

FileFormPost

  

Performs an HTTP POST request with file upload


Documentation generated on: Jan 27 2026