[web2py] Re: filename in dal

2012-04-26 Thread François Delpierre
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

[web2py] Re: filename in dal

2012-04-22 Thread Massimo Di Pierro
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 : >> >>

[web2py] Re: filename in dal

2012-04-22 Thread CtrlSoft
> > oh, thanks, next time i will check the book before ask here : > >

[web2py] Re: filename in dal

2012-04-22 Thread Massimo Di Pierro
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