Inserendo il valore sembra essere OK!

Cosa posso fare
$str = "{%=file.name%}";

Esiste un cast o altro per trasformarla in stringa?

Grazie