web2py renames files uploaded via SQLFORM, so typically the new filenames are stored in the database so they can be associated with some other metadata in order to aid retrieval (possibly including the original filename).
You can of course read the list of filenames in any folder in Python via something like: next(os.walk(os.path.join(request.folder, 'uploads'))[2] Anthony On Wednesday, July 29, 2015 at 10:29:57 AM UTC-4, xmarx wrote: > > I can get uploaded files if i upload with SQLFORM or SQLFORM.factory via* > form.name.filename*. How can get all uploaded file names under 'upload' > directory? Is the only way to save the names to db? > > > > -- > Selman Kocael > İsabet Yayınları > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.