file

Deprecated

Use filePath instead

Replace with

filePath.absolutePath.toString()