is it possible to upload files via cgi? lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- nullpointer · 2018-07-20 11:21 i just made a simple web based project cgi using fpc. the project has successfully retrieved data from the html input form and saved it to the database through POST method. then I intend to add upload file feature through html form. Can this be done via cgi? this is an example of the project I created : https://github.com/tauhidcp/FPCWeb-CRUDMySQL ---------------------------------------------------------------------- sash · 2018-07-21 21:43 Whether your server app is CGI or another type, it has nothing to do with upload ability. Typically, to upload file your html form should contain field(s) and submit request via POST. Then, at server side, you should check Request.Files and process them accordingly. Note, if your app is behind proxy (or cgi host server), that server config options should be checked (like POST size, file upload limits). ---------------------------------------------------------------------- nullpointer · 2018-07-22 00:19 Solved. I found the solution here : https://github.com/graemeg/freepascal/tree/master/packages/fcl- web/examples/fptemplate/fileupload