Skip to content

TFPCustomHTTPClient.FileFormPost

Performs an HTTP POST request with file upload

Declaration

Source position: fphttpclient.pp line 378

public 
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);

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

Name Description
FormPost Performs an HTTP POST request with form data
StreamFormPost Performs an HTTP form POST with stream upload