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,ro
No problem. We are here to help. :-)
On Sunday, 22 April 2012 18:23:38 UTC-5, CtrlSoft wrote:
>
> oh, thanks, next time i will check the book before ask here :
>>
>>
>
> oh, thanks, next time i will check the book before ask here :
>
>
You can.
http://web2py.com/books/default/chapter/29/7?search=filename#Storing-the-original-filename
You can also retrieve the original filename directly from the upload field.
using
(filename, filestream) = db.table.uploadfield.retrieve(row.uploadfield)
If the filename was too long it may
4 matches
Mail list logo