> > my application is generating pdfs which should be available via the > normal web2py download controller. > I realize, that the file in the uploads/-directory is named like: > > <tablename>.<fieldname>.<something>.<binascii.hexlify(filename)>.pdf > > But what is the something? >
Looks like it's the last 16 (non-hyphen) characters of a uuid: http://code.google.com/p/web2py/source/browse/gluon/dal.py#7897. Note, for manual uploads, you can call the field's store() method directly: http://web2py.com/books/default/chapter/29/6#Manual-uploads. Anthony