Field::file

Version 3.7

Path to file on server

This is a path to actual file in server.

File name is scrampled and the directory is not public. If you wanbt to add o link to a file, you have to use Field::url_salattu. Or if you want to show thumbnail, use Field::thumb.

Return value

String

Full documentation

Add a file to email as attachment:

$this->get('mail')
  ->from($Order->seller->email)
  ->to($Order->client->email)
  ->subject('Offer')
  ->body('Offer as attachment.')
  ->file($Order->attachments->file)
  ->send();