On Wednesday, February 27, 2019 at 3:19:47 AM UTC-8, Константин Комков wrote: > > I want to get it - > 'doc_images.file.bf573aec8fdf573f.666c6f7765722e6a706567.jpeg'. I want to > get it after my file was in uploads folder. I don't use SQLFORM. Are there > any way to get not only id after inserting? > I don't want make >
Why not? > something like it: > >> k = db_app.doc_images.insert(file=request.vars.files[i]) >> filename = db_app(db_app.doc_images.id == >> k).select(db_app.doc_images.file) >> db.a_files.insert(ID_REQUEST=requestId,FILE_NAME=filename) > > I take it you're trying to pass the server-side filename around, as you've used an upload field with the features descibed under "Field Constructor" in Chapter 6? /dps -- 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.