Rationale: If we need to parse some extra-information of a file uploaded using the attachment system, for example: count of files included in a .zip file, author information of a .docx file, ID3 tags of and mp3 file, we need to do a parse of the file.
Placement:
includes/message_parser.php
Before:
Code: Select all
$this->attachment_data = array_merge(array(0 => $new_entry), $this->attachment_data);
and again before the same code around line 1523
-------------------------------
includes/functions_content.php (for display parsed information in post body)
Code: Select all
$block_array += array(
'S_FILE' => true,
);
break;
Input arguments: $filedata array
Output format: An array[key,value] of the parsed information