On Friday, January 12, 2018 at 5:18:30 AM UTC-5, 黄祥 wrote: > > pls try: > table.image.uploadfolder = os.path.join(request.folder, '..', '..', '..', > 'webapps', 'uploads') >
Also, unless it needs to be portable to other filesystems where the path does not start with "/home", you can simplify to: table.image.uploadfolder = os.path.join('/', 'home', 'webapps', 'uploads') or even just: table.image.uploadfolder = '/home/webapps/uploads' Anthony -- 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.