[web2py] Re: Change upload behaviour: standard filename

2013-03-10 Thread Amber Doctor
Thanks, that's what I was missing. I was thinking they needed to be in a particular controller not in the model. On Tuesday, March 5, 2013 9:02:12 PM UTC-6, Jim Gregory wrote: > > Did you include the code for the store_file and retrieve_file functions > listed in the Stack Overflow answer befor

[web2py] Re: Change upload behaviour: standard filename

2013-03-05 Thread Jim Gregory
Did you include the code for the store_file and retrieve_file functions listed in the Stack Overflow answer before the table definitions in your model file? -Jim -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this gr

[web2py] Re: Change upload behaviour: standard filename

2013-03-05 Thread Amber Doctor
I've added the optional arguments to my field, and created the functions as described. However I'm getting the error: name 'store_file' is not defined Do the functions need to live in a specific location in order to be recognized? I looked through the book but I didn't see an example of the

[web2py] Re: Change upload behaviour: standard filename

2011-01-17 Thread Massimo Di Pierro
You can pass two optional arguments to Field(...) custom_store and custom_retrieve the first must be a function that takes a file like object, a filename, and an optional path (uploadfolder) stores the file where you like and returns the filename you assign to the file (can be the original one)