[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/php-ai-client/src/Files/Util/

FolderUp one level  
FileFileInputUtil.php [source] [60 lines]    Resolves developer-supplied file strings into File objects. This utility backs the convenience of passing a plain string to builder methods such as PromptBuilder::withFile(). Because it may read from the local filesystem, it must only be used with strings the developer controls. Never pass untrusted input (user input, API response data); construct a File explicitly via File::fromUrl(), File::fromDataUri() or File::fromBase64() instead.


Generated : Fri Oct 30 08:20:34 2026 Cross-referenced by PHPXref