sugarcrm blacklisted functions
When you upload the file to a note record as attachment, the filesize can be retrieved directly from the note field "file_size".
I guess that is available in v8.0 and above. If I am not wrong, the columns 'file_size' and 'file_ext' were added in v8.0 to notes table.
To clarify my motive, I want to check file_size at the time of relating an email to case with attachment. If file_size <= xxxx Bytes then attach else don't.
Hi Shantanu Agnihotri,
Email attachment is generally stored under Notes module so you can use getFileInfo method from DownloadFile utility class - include/download_file.php. This would return you an array with content-length and other useful parameters related to the file being passed as an argument. This function takes two arguments - bean and field name. Please check out and let us know if this helps.
Retrieving data ...