or
<div id="example" class="k-content"> <div style="width:60%"> <input name="files[]" id="files" type="file" /> </div></div> <script> $(document).ready(function() { $("#files").kendoUpload({ async: { saveUrl: 'save.php', removeUrl: 'remove.php', autoUpload: true } }); }); </script><?php $fileParam = "files"; $uploadRoot = "c:/upload/"; $files = $_FILES[$fileParam]; if(!is_dir($uploadRoot)) { mkdir($uploadRoot, 0777, true); chmod($uploadRoot, 0777); } if (isset($files['name'])) { foreach ($files["name"] as $i => $name) { $error = $files['error'][$i]; if ($error == UPLOAD_ERR_OK) { $targetPath = $uploadRoot . basename($files["name"][$i]); $uploadedFile = $files["tmp_name"][$i]; if (is_uploaded_file($uploadedFile)) { if (!move_uploaded_file($uploadedFile, $targetPath)) { echo "Error moving uploaded file"; } } } else { echo "Error code " . $error; } } } // Return an empty string to signify success echo "";?><?php $fileParam = "files"; $uploadRoot = "c:/upload/"; $fileNames = $_POST["fileNames"]; if (isset($fileNames)) { foreach ($fileNames as $i => $name) { $targetPath = $uploadRoot . basename($name); if (!unlink($targetPath)) { echo "Error removing file"; } } } // Return an empty string to signify success echo "";?>var cinput = $("#boxName").data("kendoAutoComplete");cinput.css("color", "red");cinput.color = "red";cinput.style.color = "red";cinput.foreground = "red";.kendoComboBox({ dataTextField: "Description", dataValueField: "Code", minLength: 3, autoBind: false, dataSource: { type: "odata", serverPaging: true, pageSize: 30, transport: { read: { url: odataUrl, dataType: "json" }, parameterMap: function (options) { if (options.filter) { var thisfilter = filter.filters[0]; return { filter: thisfilter.operator + "(tolower('" + thisfilter.value + "'), tolower(" + thisfilter.field }; } } } } });
What should the parameterMap function return?