static function testValidId($id) { return $id !== null && ufront_core_Uuid::isValid($id); }
function ufront_web_upload_TmpFileUploadMiddleware_0(&$_g, &$ctx, &$dateStr, &$dir, &$file, &$origFileName, &$postName, &$size, &$tmpFilePath, $pName, $fName) { $postName = $pName; $origFileName = $fName; $size = 0; while ($file === null) { $tmpFilePath = _hx_string_or_null($dir) . _hx_string_or_null($dateStr) . "-" . _hx_string_or_null(ufront_core_Uuid::create()) . ".tmp"; if (!file_exists($tmpFilePath)) { $file = sys_io_File::write($tmpFilePath, null); } } return ufront_core_SurpriseTools::success(); }