[web2py] Get image from url and save in uploads folder - AttributeError

2016-07-17 Thread Nico de Groot
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

[web2py] Get image from url and save in uploads folder - AttributeError

2016-07-17 Thread Daniel
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