Plugin file input example

  
                                 $pdocrud = new PDOCrud();
                            $pdocrud->addPlugin("bootstrap-fileinput-master");//to add plugin          
                            $pdocrud->fieldTypes("product_image", "image");//change field type
                            $pdocrud->formFields(array("product_name","product_price","product_image"));
                            echo $pdocrud->dbTable("producttable")->render("insertform");
                            echo $pdocrud->loadPluginJsCode("bootstrap-fileinput-master","input[type=file]");//to add plugin call on input[type=file] elements
                            
                            

Plugin file input example - GOPHP