I have a functionality where user will send documents without storing anything in the database. So there is no field to put in models. Once it is uploaded, it directly sends that document as attachment in the email.
All the links found on Stackoverflow requires 'models' for that controller for file validation. So, this is NOT a duplicate.
Can you please advice on how to directly send validated files (through mime types and size) before send an email?
Thanks.
If you are using CakePHP 2.1
Returns the File info as an array with the following keys:
Notes: