When you upload a file with SQLFORM factory, the file is assigned a name 
along the lines of "no_table.[something1].[something2]...". If you've 
manually written the form validation/accept code, you can change the file 
name that is stored in the table by changing the form.vars.[name_of_field] 
variable corresponding to the file. I'm changing the "no_table" prefix of 
the filename to the name of the corresponding table, for example. This 
changes the table entry for the file name, but does not modify the name of 
the uploaded file itself. 

How does one modify the name of the file that is uploaded without using 
SQLFORM.factory's tablename argument? Thank you.

-- 
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.

Reply via email to