In your function you overwrite the web2py request object. So when you use
request.folder later it's no longer available.
You can save the attribute to a local var request _location before the
overwrite, and use it later.
Nico de Groot
--
Resources:
- http://web2py.com
- http://web2py.com/book
Hi all,
I am trying to retrieve a picture from a url and save it in the uploads
folder and then reference the file in the auth_user table, however I am
getting AttributeError (folder) and I'm not sure why.
def save_facebook_image(fbid):
if auth.user:
import urll
2 matches
Mail list logo