file_validate_name_length
function file_validate_name_length
file_validate_name_length(stdClass $file)
Checks for files with names longer than we can store in the database.
Parameters
$file: A Drupal file object.
Return value
An array. If the file name is too long, it will contain an error message.
Related topics
File
- includes/file.inc, line 1693
- API for handling file uploads and server file management.
Code
登录查看完整内容