On Feb11, 9:11pm, Mike <michael.mcgreg...@gmail.com> wrote: > Hopefully this is a quick one... > > I want to use SQLFORM to allow a user to save information about a file > including the *local path*. However I don't want to actually save the > file in the database. The idea is to parse the local path and save a > portion of it to the db that will match a file structure on the > server. I know this sounds goofy, but I'm limited in my server access > at work and I have to do all file uploads via a separate interface. > Then the saved information is used to produce a JSON file that is read > by DataTables. > > I know the file input HTML control will grab this, but I'd like to use > web2py to take advange of it's other features. > > Thanks, > > Mike
Don't know what exactly you want, but these might help. To upload a file without saving it, you can set it as: Field('your_field_name', 'upload', uploadfield=False) To know the local path of a file being upload, it seems to be browser- dependent. A normal <input type='file' name='the_file'> does not guarantee you a full path filename, AFAIK. -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.