Thanks for the tip. But I do not understand the default behavior of Web2Py. I would expect to have the original file name displayed, instead of just the link named "file".
In order to achieve this, I take your previous typ and I adapt my DAL : db.mytable.f_sourcefile.represent = lambda rowid,row: \ A(db.mytable.f_sourcefile.retrieve(row.f_sourcefile)[0][:30], _href=URL('download', args=rowid)) Is there no easier/cleaner way ?