Customer Portal
Language
 
Home>Knowledge Base>Clever Internet Suite>Code Samples>How to build and send the submit file request with the POST method
Information
Article ID27
Created On1/23/2010
Modified2/7/2010
Share With Others
How to build and send the submit file request with the POST method
Check also Build Form Post Request

procedure TMain.btSubmitClick(Sender: TObject);   
begin   
   clUploader1.HTTPRequest := clHttpRequest1;   
 
   clHttpRequest1.Clear();   
   clHttpRequest1.AddSubmitFile('fieldname''Project1.dpr');   
 
   clUploader1.UseHTTPRequest := True;   
   clUploader1.URL := 'http://www.clevercomponents.com/'   
      + 'products/inetsuite/demos/serversubmitfile.asp';   
   clUploader1.Start(False);   
end