Bugfix: content variable was not define before access (thanks to Giulia Nencini)
I am also not reading file content anymore, as this is potentially unsafe when file is very big and also could need special encoding translation etc.
Better retrieve the path and let the user decide what to do afterwards.